Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets or sets the type of interface as an eInterfaceType enumeration.
Namespace: Microsoft.VisualStudio.VsWizard
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
'Declaration
Property ActiveType As eInterfaceType
eInterfaceType ActiveType { get; set; }
property eInterfaceType ActiveType {
eInterfaceType get ();
void set (eInterfaceType value);
}
abstract ActiveType : eInterfaceType with get, set
function get ActiveType () : eInterfaceType
function set ActiveType (value : eInterfaceType)
Property Value
Type: Microsoft.VisualStudio.VsWizard.eInterfaceType
An eInterfaceType enumeration.
Examples
// 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);
}
.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.