Show / Hide Table of Contents

Interface IComTypeLoadingProvider

Interface representing a reflection provider used to load System.Type objects using COM.

Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IComTypeLoadingProvider

Methods

GetTypeFromCLSID(Guid, String, Boolean)

Gets the type associated with the specified class identifier (CLSID) from the specified server, specifying whether to throw an exception if an error occurs while loading the type.

Declaration
Type GetTypeFromCLSID(Guid clsid, string server, bool throwOnError)
Parameters
Type Name Description
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.

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.

GetTypeFromProgID(String, String, Boolean)

Gets the type associated with the specified program identifier (progID) from the specified server, specifying whether to throw an exception if an error occurs while loading the type.

Declaration
Type GetTypeFromProgID(string progID, string server, bool throwOnError)
Parameters
Type Name Description
System.String progID

The progID of the System.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.

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 progID is a valid entry in the registry and a type is associated with it; otherwise, null.

Extension Methods

ComTypeLoadingProviderExtensions.GetTypeFromCLSID(IComTypeLoadingProvider, Guid)
ComTypeLoadingProviderExtensions.GetTypeFromCLSID(IComTypeLoadingProvider, Guid, Boolean)
ComTypeLoadingProviderExtensions.GetTypeFromCLSID(IComTypeLoadingProvider, Guid, String)
ComTypeLoadingProviderExtensions.GetTypeFromProgID(IComTypeLoadingProvider, String)
ComTypeLoadingProviderExtensions.GetTypeFromProgID(IComTypeLoadingProvider, String, Boolean)
ComTypeLoadingProviderExtensions.GetTypeFromProgID(IComTypeLoadingProvider, String, String)
In This Article
Back to top Generated by DocFX