IInterfaceInfo - интерфейс
Provides information about the properties of the specified type library's interfaces.
Пространство имен: Microsoft.VisualStudio.VsWizard
Сборка: Microsoft.VisualStudio.VsWizard (в Microsoft.VisualStudio.VsWizard.dll)
Синтаксис
'Декларация
<GuidAttribute("D4D285D2-2447-11D7-8BF6-00B0D03DAA06")> _
Public Interface IInterfaceInfo
'Применение
Dim instance As IInterfaceInfo
[GuidAttribute("D4D285D2-2447-11D7-8BF6-00B0D03DAA06")]
public interface IInterfaceInfo
[GuidAttribute(L"D4D285D2-2447-11D7-8BF6-00B0D03DAA06")]
public interface class IInterfaceInfo
public interface IInterfaceInfo
Заметки
The IInterfaceInfo object controls information about the properties contained in the specified interface such as:
Name
Type
Functions
Base interface
For example, by using these properties, you could add the methods of a specified interface to a project. See Implement Interface Wizard for an example.
Примеры
// From the Visual Studio Implement Interface Wizard, which uses the
// Name property to identify and get the properties of an interface.
function GetProxyClassHeader(oInterface)
{
var strHeader;
var strInterface = oInterface.Name;
var strIID = "__uuidof(" + strInterface + ")";
strHeader =
"template<class T>\r\n" +
"class CProxy" + strInterface + " :\r\n" +
"\tpublic IConnectionPointImpl<T, &" + strIID + ">\r\n" +
"{\r\n" +
"public:\r\n";
return strHeader;
}
Примечание. |
---|
See How to: Interpret Visual C++ Wizard Model Examples for more information about how properties are called in both the HTML and the default.js files of a custom wizard. |