ManagementOptions.Context 属性

定义

获取或设置一个 WMI 上下文对象。Gets or sets a WMI context object. 这是将传递给 WMI 提供程序的名称-值对列表,该提供程序支持自定义操作的上下文信息。This is a name-value pairs list to be passed through to a WMI provider that supports context information for customized operation.

public:
 property System::Management::ManagementNamedValueCollection ^ Context { System::Management::ManagementNamedValueCollection ^ get(); void set(System::Management::ManagementNamedValueCollection ^ value); };
public System.Management.ManagementNamedValueCollection Context { get; set; }
member this.Context : System.Management.ManagementNamedValueCollection with get, set
Public Property Context As ManagementNamedValueCollection

属性值

返回一个 ManagementNamedValueCollection,它包含 WMI 上下文信息。Returns a ManagementNamedValueCollection that contains WMI context information.

注解

属性值Property Value

要传递到 WMI 提供程序的名称-值对列表,该提供程序支持自定义操作的上下文信息。A name-value pairs list to be passed through to a WMI provider that supports context information for customized operation.

.NET Framework 安全性.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.

适用于