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
AddressOfMember​(int memid, INVOKEKIND invKind, IntPtr& ppv)
public void
CreateInstance​(object pUnkOuter, Guid& riid, Object& ppvObj)
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
GetContainingTypeLib​(ITypeLib& ppTLB, Int32& pIndex)
public void
GetCustData​(Guid& guid, Object& pVarVal)
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
GetFuncCustData​(int index, Guid& guid, Object& pVarVal)
public void
GetFuncDesc​(int index, IntPtr& ppFuncDesc)
public void
GetFuncIndexOfMemId​(int memid, INVOKEKIND invKind, Int32& pFuncIndex)
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
GetImplTypeCustData​(int index, Guid& guid, Object& pVarVal)
public void
GetImplTypeFlags​(int index, IMPLTYPEFLAGS& pImplTypeFlags)
public void
GetMops​(int memid, String& pBstrMops)
public void
GetNames​(int memid, string[] rgBstrNames, int cMaxNames, Int32& pcNames)
public void
GetParamCustData​(int indexFunc, int indexParam, Guid& guid, Object& pVarVal)
public void
GetRefTypeInfo​(int hRef, ITypeInfo& ppTI)
public void
GetRefTypeOfImplType​(int index, Int32& href)
public void
GetTypeAttr​(IntPtr& ppTypeAttr)
public void
GetTypeComp​(ITypeComp& ppTComp)
public void
GetTypeFlags​(Int32& pTypeFlags)
public void
GetTypeKind​(TYPEKIND& pTypeKind)
public void
GetVarCustData​(int index, Guid& guid, Object& pVarVal)
public void
GetVarDesc​(int index, IntPtr& ppVarDesc)
public void
GetVarIndexOfMemId​(int memid, Int32& pVarIndex)
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.