Export (0) Print
Expand All

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

ResourceLocator

 

 

Show:
© 2014 Microsoft