NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Type.GetTypeFromProgID (String)

Gets the Type associated with the specified program identifier (progID), throwing an exception on error while loading the Type.

[Visual Basic]
Overloads Public Shared Function GetTypeFromProgID( _
   ByVal progID As String _
) As Type
[C#]
public static Type GetTypeFromProgID(
   string progID
);
[C++]
public: static Type* GetTypeFromProgID(
   String* progID
);
[JScript]
public static function GetTypeFromProgID(
   progID : String
) : Type;

Parameters

progID
The progID of the Type to get.

Return Value

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, a null reference (in Visual Basic Nothing).

Exceptions

Exception Type Condition
SecurityException The requested Type is non-public and the caller does not have ReflectionPermission to reflect non-public objects outside the current assembly.
TargetInvocationException A class initializer is invoked and throws an exception.

Remarks

This method is provided for COM classic support. Program IDs are not used in the NGWS runtime because they have been superceded by the concept of namespace.

See Also

Type Class | Type Members | System Namespace | Type.GetTypeFromProgID Overload List