ITsSbResourcePluginStore::QueryTarget method (sbtsv.h)
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
[in] TargetName
The target name.
[in] FarmName
The farm name. If this parameter is NULL, the method returns the first target it finds.
[out] ppTarget
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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | sbtsv.h |