IComManagedImportUtil.GetComponentInfo(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the component information from the assembly.
public:
void GetComponentInfo(System::String ^ assemblyPath, [Runtime::InteropServices::Out] System::String ^ % numComponents, [Runtime::InteropServices::Out] System::String ^ % componentInfo);
public void GetComponentInfo (string assemblyPath, out string numComponents, out string componentInfo);
abstract member GetComponentInfo : string * string * string -> unit
Public Sub GetComponentInfo (assemblyPath As String, ByRef numComponents As String, ByRef componentInfo As String)
Parameters
- assemblyPath
- String
The path to the assembly.
- numComponents
- String
When this method returns, this parameter contains the number of components in the assembly.
- componentInfo
- String
When this method returns, this parameter contains the information about the components.
Exceptions
assemblyPath
is an empty string (""), contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
-or-
The system could not retrieve the absolute path.
The caller does not have the required permissions.
assemblyPath
is null
.
assemblyPath
contains a colon (":").
The specified path, file name, or both exceed the system-defined maximum length.
Remarks
This method is called by the COM+ catalog to identify the class identifiers (CLSIDs) and ProgIDs of the components in a DLL before it is registered.