IInterfaceInfo.IsDispatchable 속성

인터페이스에서 파생 되었는지 여부를 나타내는 값을 가져옵니다. IDispatch.

네임스페이스:  Microsoft.VisualStudio.VsWizard
어셈블리:  Microsoft.VisualStudio.VsWizard(Microsoft.VisualStudio.VsWizard.dll)

구문

‘선언
ReadOnly Property IsDispatchable As Boolean
bool IsDispatchable { get; }
property bool IsDispatchable {
    bool get ();
}
abstract IsDispatchable : bool with get
function get IsDispatchable () : boolean

속성 값

형식: System.Boolean
true 인터페이스에서 파생 된 경우 IDispatch. 그렇지 않으면 false.

예제

// From the Visual C++ Implement Interface wizard
function IsCustomInterface(nSource, oInterface)
{
   if (nSource == g_nSourceCodeModel)
   {
      var oBases = oInterface.Bases;
      var cBases = oBases.Count;

      if (!cBases)
      {
         return false;
      }
      else
      {
         oBase = oBases.Item(1);
         
         if (oBase.Name == "IDispatch")
         {
            return false;
         }
         else
         {
            var oBaseInterface = oBase.Class;
            
            if (oBaseInterface)
            {
               return IsCustomInterface(nSource, oBaseInterface);
            }
         }
      }
   }
   else
   {
      return oInterface.Type == einterfaceCustom && oInterface.IsDispatchable == false;
   }
}

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

IInterfaceInfo 인터페이스

Microsoft.VisualStudio.VsWizard 네임스페이스