Export (0) Print
Expand All

ContextUtil.GetNamedProperty Method

Returns a named property from the COM+ context.

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

Parameters

name
The name of the requested property.

Return Value

The named property for the context.

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft