Szerkesztés

Megosztás a következőn keresztül:


ResourceLocator.AddSelector method

Adds a selector to the ResourceLocator object. The selector specifies a particular instance of a resource. You can provide a ResourceLocator object instead of specifying a resource URI in Session object operations such as Session.Get, Session.Put, or Session.Enumerate.

Syntax

ResourceLocator.AddSelector( _
  ByVal resourceSelName, _
  ByVal selValue _
)

Parameters

resourceSelName [in]

The selector name. For example, when requesting WMI data, this parameter is the key property for a WMI class.

selValue [in]

The selector value. For example, for WMI data, this parameter contains a value for a key property that identifies a specific instance.

Remarks

IWSManResourceLocator::AddSelector is the corresponding C++ method.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
WSManDisp.h
IDL
WSManDisp.idl
Library
WSManDisp.tlb
DLL
WSMAuto.dll

See also

ResourceLocator