IInterfaceInfo.ActiveType Ö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.
Arabirim türünü bir numaralandırma olarak alır veya ayarlar eInterfaceType .
public:
property Microsoft::VisualStudio::VsWizard::eInterfaceType ActiveType { Microsoft::VisualStudio::VsWizard::eInterfaceType get(); void set(Microsoft::VisualStudio::VsWizard::eInterfaceType value); };
public:
property Microsoft::VisualStudio::VsWizard::eInterfaceType ActiveType { Microsoft::VisualStudio::VsWizard::eInterfaceType get(); void set(Microsoft::VisualStudio::VsWizard::eInterfaceType value); };
[System.Runtime.InteropServices.DispId(1610743816)]
public Microsoft.VisualStudio.VsWizard.eInterfaceType ActiveType { [System.Runtime.InteropServices.DispId(1610743816)] get; [System.Runtime.InteropServices.DispId(1610743816)] set; }
[<System.Runtime.InteropServices.DispId(1610743816)>]
[<get: System.Runtime.InteropServices.DispId(1610743816)>]
[<set: System.Runtime.InteropServices.DispId(1610743816)>]
member this.ActiveType : Microsoft.VisualStudio.VsWizard.eInterfaceType with get, set
Public Property ActiveType As eInterfaceType
Özellik Değeri
Bir eInterfaceType sabit listesi.
- Öznitelikler
Örnekler
// Taken from the Visual C++ Implement Interface Wizard.
function AddImplementInterfaceCode()
{
var cInterfaces = g_aChosenInterfaces.length;
var strMethodStubs = "";
for (var iInterface = 0; iInterface < cInterfaces; iInterface++)
{
var nSource = g_aChosenSources[iInterface];
var oInterface = g_aChosenInterfaces[iInterface];
var oTypeLib = g_aChosenTypeLibs[iInterface];
if (nSource != g_nSourceCodeModel && einterfaceDual == oInterface.Type)
{
oInterface.ActiveType = einterfaceCustom;
}
AddIncludeOrImport(nSource, oInterface, oTypeLib);
AddBase(nSource, oInterface, oTypeLib);
AddMapEntry(nSource, oInterface);
strMethodStubs += GenerateMethodStubs(nSource, oInterface, oTypeLib);
}
DisambiguateMapEntries();
var oEditPoint = g_oParent.EndPointOf(vsCMPartBody, vsCMWhereDefinition).CreateEditPoint()
oEditPoint.Insert(strMethodStubs);
g_oCM.Synchronize();
g_oParent.StartPoint.CreateEditPoint().SmartFormat(g_oParent.EndPoint);
}