Class ComTypeLoadingProviderExtensions
Provides a set of extension methods for IComTypeLoadingProvider.
Inheritance
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public static class ComTypeLoadingProviderExtensions : Object
  Methods
GetTypeFromCLSID(IComTypeLoadingProvider, Guid)
Gets the type associated with the specified class identifier (CLSID).
Declaration
public static Type GetTypeFromCLSID(this IComTypeLoadingProvider provider, Guid clsid)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.Guid | clsid | The CLSID of the type to get.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | System.__ComObject regardless of whether the CLSID is valid.  | 
      
GetTypeFromCLSID(IComTypeLoadingProvider, Guid, Boolean)
Gets the type associated with the specified class identifier (CLSID), specifying whether to throw an exception if an error occurs while loading the type.
Declaration
public static Type GetTypeFromCLSID(this IComTypeLoadingProvider provider, Guid clsid, bool throwOnError)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.Guid | clsid | The CLSID of the type to get.  | 
      
| System.Boolean | throwOnError | true to throw any exception that occurs.-or- false to ignore any exception that occurs.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | System.__ComObject regardless of whether the CLSID is valid.  | 
      
GetTypeFromCLSID(IComTypeLoadingProvider, Guid, String)
Gets the type associated with the specified class identifier (CLSID) from the specified server.
Declaration
public static Type GetTypeFromCLSID(this IComTypeLoadingProvider provider, Guid clsid, string server)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.Guid | clsid | The CLSID of the type to get.  | 
      
| System.String | server | The server from which to load the type. If the server name is null, this method automatically reverts to the local machine.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | System.__ComObject regardless of whether the CLSID is valid.  | 
      
GetTypeFromProgID(IComTypeLoadingProvider, String)
Gets the type associated with the specified program identifier (ProgID), returning null if an error is encountered while loading the System.Type.
Declaration
public static Type GetTypeFromProgID(this IComTypeLoadingProvider provider, string progID)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.String | progID | The ProgID of the type to get.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The type associated with the specified ProgID, if   | 
      
GetTypeFromProgID(IComTypeLoadingProvider, String, Boolean)
Gets the type associated with the specified program identifier (ProgID), specifying whether to throw an exception if an error occurs while loading the type.
Declaration
public static Type GetTypeFromProgID(this IComTypeLoadingProvider provider, string progID, bool throwOnError)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.String | progID | The ProgID of the type to get.  | 
      
| System.Boolean | throwOnError | true to throw any exception that occurs.-or- false to ignore any exception that occurs.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The type associated with the specified program identifier (ProgID), if   | 
      
GetTypeFromProgID(IComTypeLoadingProvider, String, String)
Gets the type associated with the specified program identifier (progID) from the specified server, returning null if an error is encountered while loading the type.
Declaration
public static Type GetTypeFromProgID(this IComTypeLoadingProvider provider, string progID, string server)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IComTypeLoadingProvider | provider | The reflection provider.  | 
      
| System.String | progID | The progID of the type to get.  | 
      
| System.String | server | The server from which to load the type. If the server name is null, this method automatically reverts to the local machine.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The type associated with the specified program identifier (progID), if   |