共用方式為


IExtendedTypeLib.SetExtenderInfo Method

Sets the information for the extending type in the extended type library.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function SetExtenderInfo ( _
    lpstrDirectoryName As String, _
    ptinfoExtender As Type, _
    dwReserved As UInteger _
) As Integer
'用途
Dim instance As IExtendedTypeLib
Dim lpstrDirectoryName As String
Dim ptinfoExtender As Type
Dim dwReserved As UInteger
Dim returnValue As Integer

returnValue = instance.SetExtenderInfo(lpstrDirectoryName, _
    ptinfoExtender, dwReserved)
int SetExtenderInfo(
    string lpstrDirectoryName,
    Type ptinfoExtender,
    uint dwReserved
)
int SetExtenderInfo(
    [InAttribute] String^ lpstrDirectoryName, 
    [InAttribute] Type^ ptinfoExtender, 
    [InAttribute] unsigned int dwReserved
)
abstract SetExtenderInfo : 
        lpstrDirectoryName:string * 
        ptinfoExtender:Type * 
        dwReserved:uint32 -> int 
function SetExtenderInfo(
    lpstrDirectoryName : String, 
    ptinfoExtender : Type, 
    dwReserved : uint
) : int

Parameters

  • lpstrDirectoryName
    Type: System.String
    [in] Pointer to a string containing the complete path to write out the extended type library. Use NULL if not saving the library.
  • dwReserved
    Type: System.UInt32
    [in] Not used. Use zero (0) or NULL.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From objext.idl:

[C++]

HRESULT IExtendedTypeLib::SetExtenderInfo(
   [in] LPCOLESTR lpstrDirectoryName, 
   [in] ITypeInfo *ptinfoExtender, 
   [in] DWORD dwReserved
);

.NET Framework Security

See Also

Reference

IExtendedTypeLib Interface

IExtendedTypeLib Members

Microsoft.VisualStudio.Shell.Interop Namespace