Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets the filename for a given type library.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function GetMainWrapperFilename ( _
pTypeLibToWrap As TLIBATTR(), _
<OutAttribute> ByRef pbstrFilename As String _
) As Integer
'Uso
Dim instance As IVsTypeLibraryWrapper
Dim pTypeLibToWrap As TLIBATTR()
Dim pbstrFilename As String
Dim returnValue As Integer
returnValue = instance.GetMainWrapperFilename(pTypeLibToWrap, _
pbstrFilename)
int GetMainWrapperFilename(
TLIBATTR[] pTypeLibToWrap,
out string pbstrFilename
)
int GetMainWrapperFilename(
[InAttribute] array<TLIBATTR>^ pTypeLibToWrap,
[OutAttribute] String^% pbstrFilename
)
abstract GetMainWrapperFilename :
pTypeLibToWrap:TLIBATTR[] *
pbstrFilename:string byref -> int
function GetMainWrapperFilename(
pTypeLibToWrap : TLIBATTR[],
pbstrFilename : String
) : int
Parameters
- pTypeLibToWrap
Type: array<Microsoft.VisualStudio.OLE.Interop.TLIBATTR[]
[in] Pointer to a type library to be wrapped.
- pbstrFilename
Type: System.String%
[out] Pointer to a string containing the file name.
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 compsvcspkg.idl:
HRESULT IVsTypeLibraryWrapper::GetMainWrapperFilename(
[in] TLIBATTR* pTypeLibToWrap,
[out,retval] BSTR* pbstrFileName
);
This method is useful in establishing a standard convention for type library wrapper names. For example, all Tlbimp wrappers have "Interop" attached to their names.
.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.