This documentation is archived and is not being maintained.

ContextUtil.GetNamedProperty Method

Returns a named property from the COM+ context.

[Visual Basic]
Public Shared Function GetNamedProperty( _
   ByVal name As String _
) As Object
public static object GetNamedProperty(
 string name
public: static Object* GetNamedProperty(
 String* name
public static function GetNamedProperty(
   name : String
) : Object;


The name of the requested property.

Return Value

The named property for the context.


Exception Type Condition
COMException There is no COM+ context available.
PlatformNotSupportedException The platform is not Windows 2000 or later.


This is useful for obtaining the Internet Information Services (IIS) intrinsic objects provided by ASP.

This property is available only on Windows 2000 or later. On other platforms, it throws a PlatformNotSupportedException.


Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ContextUtil Class | ContextUtil Members | System.EnterpriseServices Namespace