ITsSbResourcePluginStore::QueryTarget method

Returns the target that has the specified target name and farm name.

Syntax


HRESULT QueryTarget(
  [in]  BSTR        TargetName,
  [in]  BSTR        FarmName,
  [out] ITsSbTarget **ppTarget
);

Parameters

TargetName [in]

The target name.

FarmName [in]

The farm name. If this parameter is NULL, the method returns the first target it finds.

ppTarget [out]

A pointer to a pointer to an ITsSbTarget target object. When you have finished using the object, release it by calling the Release method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A resource plug-in store can use this method to retrieve the target that has the specified target name and farm name. Unlike the global store, the resource plug-in store does not copy the target object retrieved because the resource plug-in owns the target object. Accordingly, if you modify the ITsSbTarget object that is returned by this method, you are modifying the target object in the resource plug-in store.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

IDL

Sbtsv.idl

IID

IID_ITsSbResourcePluginStore is defined as 5c38f65f-bcf1-4036-a6bf-9e3cccae0b63

IID_ITsSbResourcePluginStoreEx is defined as 80b83ffd-625d-11e5-bea1-a0481c7e9064

See also

ITsSbResourcePluginStoreEx
ITsSbResourcePluginStore
ITsSbTarget

 

 

Show: