IInterfaceInfo.IsDispatchable Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Arabirimin IDispatch'ten türetilip türetilmediğini gösteren bir değer alır.
public:
property bool IsDispatchable { bool get(); };
public:
property bool IsDispatchable { bool get(); };
[System.Runtime.InteropServices.DispId(1610743818)]
public bool IsDispatchable { [System.Runtime.InteropServices.DispId(1610743818)] get; }
[<System.Runtime.InteropServices.DispId(1610743818)>]
[<get: System.Runtime.InteropServices.DispId(1610743818)>]
member this.IsDispatchable : bool
Public ReadOnly Property IsDispatchable As Boolean
Özellik Değeri
true arabirim IDispatch'ten türetildiyse; Aksi takdirde, false .
- Öznitelikler
Örnekler
// 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;
}
}