ContextUtil.SetNamedProperty Method (String, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the named property for the COM+ context.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public static void SetNamedProperty(
	string name,
	object value
)

Parameters

name
Type: System.String

The name of the property to set.

value
Type: System.Object

Object that represents the property value to set.

Exception 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 Active Server Pages (ASP).

.NET Framework
Available since 2.0
Return to top
Show: