This documentation is archived and is not being maintained.

ComManagedImportUtil.GetComponentInfo Method

Gets the component information from the assembly.

Namespace: System.EnterpriseServices.Internal
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

public void GetComponentInfo (
	string assemblyPath,
	out string numComponents,
	out string componentInfo
public final void GetComponentInfo (
	String assemblyPath, 
	/** @attribute OutAttribute() */ /** @ref */ String numComponents, 
	/** @attribute OutAttribute() */ /** @ref */ String componentInfo
JScript does not support passing value-type arguments by reference.



The path to the assembly.


When this method returns, this parameter contains the number of components in the assembly.


When this method returns, this parameter contains the information about the components.

Exception typeCondition


assemblyPath is an empty string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.


The system could not retrieve the absolute path.


The caller does not have the required permissions.


assemblyPath is a null reference (Nothing in Visual Basic).


assemblyPath contains a colon (":").


The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0