Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Runtime.​InteropServices.​ComTypes.​ITypeInfo2
Assembly: System.Runtime.InteropServices
Provides the managed definition of the <see langword="ITypeInfo2" /> interface.
Methods
public
void
GetAllCustData​(nint pCustData)
pCustData
A pointer to <see langword="CUSTDATA" /> , which holds all custom data items.
Gets all custom data items for the library.
public
void
GetAllFuncCustData​(int index,
nint pCustData)
index
The index of the function to get the custom data for.
pCustData
A pointer to <see langword="CUSTDATA" /> , which holds all custom data items.
Gets all custom data from the specified function.
public
void
GetAllImplTypeCustData​(int index,
nint pCustData)
index
The index of the implementation type for the custom data.
pCustData
A pointer to <see langword="CUSTDATA" /> that holds all custom data items.
Gets all custom data for the specified implementation type.
public
void
GetAllParamCustData​(int indexFunc,
int indexParam,
nint pCustData)
indexFunc
The index of the function to get the custom data for.
indexParam
The index of the parameter of this function to get the custom data for.
pCustData
A pointer to <see langword="CUSTDATA" /> , which holds all custom data items.
Gets all of the custom data for the specified function parameter.
public
void
GetAllVarCustData​(int index,
nint pCustData)
index
The index of the variable to get the custom data for.
pCustData
A pointer to <see langword="CUSTDATA" /> , which holds all custom data items.
Gets the variable for the custom data.
public
void
GetDllEntry​(int memid,
INVOKEKIND invKind,
nint pBstrDllName,
nint pBstrName,
nint pwOrdinal)
memid
The ID of the member function whose DLL entry description is to be returned.
invKind
One of the <see cref="T:System.Runtime.InteropServices.ComTypes.INVOKEKIND" /> values that specifies the kind of member identified by <paramref name="memid" /> .
pBstrDllName
If not <see langword="null" /> , the function sets <paramref name="pBstrDllName" /> to a <see langword="BSTR" /> that contains the name of the DLL.
pBstrName
If not <see langword="null" /> , the function sets <c>lpbstrName</c> to a <see langword="BSTR" /> that contains the name of the entry point.
pwOrdinal
If not <see langword="null" /> , and the function is defined by an ordinal, then <c>lpwOrdinal</c> is set to point to the ordinal.
Retrieves a description or specification of an entry point for a function in a DLL.
public
void
GetDocumentation​(int index,
String& strName,
String& strDocString,
Int32& dwHelpContext,
String& strHelpFile)
public
void
GetDocumentation2​(int memid,
String& pbstrHelpString,
Int32& pdwHelpStringContext,
String& pbstrHelpStringDll)
public
void
GetIDsOfNames​(string[] rgszNames,
int cNames,
int[] pMemId)
rgszNames
An array of names to map.
cNames
The count of names to map.
pMemId
When this method returns, contains a reference to an array in which name mappings are placed. This parameter is passed uninitialized.
Maps between member names and member IDs, and parameter names and parameter IDs.
public
void
GetNames​(int memid,
string[] rgBstrNames,
int cMaxNames,
Int32& pcNames)
public
void
GetParamCustData​(int indexFunc,
int indexParam,
Guid& guid,
Object& pVarVal)
public
void
Invoke​(object pvInstance,
int memid,
short wFlags,
DISPPARAMS& pDispParams,
nint pVarResult,
nint pExcepInfo,
Int32& puArgErr)
public
void
ReleaseFuncDesc​(nint pFuncDesc)
pFuncDesc
A reference to the <see langword="FUNCDESC" /> structure to release.
Releases a <see cref="T:System.Runtime.InteropServices.FUNCDESC" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetFuncDesc(System.Int32,System.IntPtr@)" /> method.
public
void
ReleaseTypeAttr​(nint pTypeAttr)
pTypeAttr
A reference to the <see langword="TYPEATTR" /> structure to release.
Releases a <see cref="T:System.Runtime.InteropServices.TYPEATTR" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetTypeAttr(System.IntPtr@)" /> method.
public
void
ReleaseVarDesc​(nint pVarDesc)
pVarDesc
A reference to the <see langword="VARDESC" /> structure to release.
Releases a <see langword="VARDESC" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetVarDesc(System.Int32,System.IntPtr@)" /> method.