Udostępnij za pośrednictwem


IInterfaceInfo Interface

Provides information about the properties of the specified type library's interfaces.

Namespace:  Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

Syntax

'Declaration
<GuidAttribute("EFD00EF5-B6B1-4DC0-908A-18AF68FEE2BD")> _
Public Interface IInterfaceInfo
[GuidAttribute("EFD00EF5-B6B1-4DC0-908A-18AF68FEE2BD")]
public interface IInterfaceInfo
[GuidAttribute(L"EFD00EF5-B6B1-4DC0-908A-18AF68FEE2BD")]
public interface class IInterfaceInfo
[<GuidAttribute("EFD00EF5-B6B1-4DC0-908A-18AF68FEE2BD")>]
type IInterfaceInfo =  interface end
public interface IInterfaceInfo

The IInterfaceInfo type exposes the following members.

Properties

  Name Description
Public property ActiveType Gets or sets the type of interface as an eInterfaceType enumeration.
Public property Base Gets a string containing the name of the base class of the interface.
Public property Default Gets a value indicating whether the interface is the default interface.
Public property Functions Gets a collection of functions for the parent object.
Public property Guid Gets the GUID for the IInterfaceInfo object.
Public property IsDispatchable Gets a value indicating whether the interface is derived from IDispatch.
Public property Name Gets or sets the name of the object.
Public property Properties Gets the properties of the interface.
Public property Source Gets a value indicating whether the interface is the source — that is, an interface that the client listens to, rather than calls.
Public property Type Gets the interface type as an eInterfaceType enumeration.

Top

Remarks

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.

Examples

// 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;
}

Note

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.

See Also

Reference

Microsoft.VisualStudio.VsWizard Namespace