ContextUtil.SetNamedProperty(String, Object) 方法

定义

设置 COM+ 上下文的命名属性。Sets the named property for the COM+ context.

public:
 static void SetNamedProperty(System::String ^ name, System::Object ^ value);
public static void SetNamedProperty (string name, object value);
static member SetNamedProperty : string * obj -> unit
Public Shared Sub SetNamedProperty (name As String, value As Object)

参数

name
String

要设置的属性的名称。The name of the property to set.

value
Object

表示要设置的属性值的对象。Object that represents the property value to set.

例外

没有可用的 COM+ 上下文。There is no COM+ context available.

注解

这对于获取 Active Server Pages (ASP)提供的 Internet Information Services (IIS)内部对象非常有用。This is useful for obtaining the Internet Information Services (IIS) intrinsic objects provided by Active Server Pages (ASP).

适用于

另请参阅