This documentation is archived and is not being maintained.
ContextUtil.GetNamedProperty Method
.NET Framework 1.1
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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
ContextUtil Class | ContextUtil Members | System.EnterpriseServices Namespace
Show: