IInterfaceInfo.ActiveType 속성
인터페이스의 형식을 가져오거나 설정 합니다.는 eInterfaceType 열거형입니다.
네임스페이스: Microsoft.VisualStudio.VsWizard
어셈블리: Microsoft.VisualStudio.VsWizard(Microsoft.VisualStudio.VsWizard.dll)
구문
‘선언
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)
속성 값
형식: Microsoft.VisualStudio.VsWizard.eInterfaceType
eInterfaceType 열거형입니다.
예제
// 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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.