Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a value indicating whether the interface is derived from IDispatch.
Namespace: Microsoft.VisualStudio.VsWizard
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
'Declaration
ReadOnly Property IsDispatchable As Boolean
Get
bool IsDispatchable { get; }
property bool IsDispatchable {
bool get ();
}
abstract IsDispatchable : bool
function get IsDispatchable () : boolean
Property Value
Type: System.Boolean
true if the interface is derived from IDispatch; otherwise, false.
Examples
// 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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.