IWMSPublishingPoints::Remove
Previous | Next |
IWMSPublishingPoints::Remove
The Remove method removes a specific publishing point from the IWMSPublishingPoints collection.
Syntax
HRESULT Remove( VARIANT varIndex );
Parameters
varIndex
[in] VARIANT containing the name, pointer, or index for the publishing point to remove.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
DISP_E_BADINDEX | 0x8002000B | Indicates that varIndex is an invalid index location. |
NS_E_CANNOT_REMOVE_PUBLISHING_POINT | 0xC00D1450L | Indicates that a cache proxy publishing point cannot be removed. |
Remarks
You can use the IWMSPublishingPoint::get_Name method to retrieve the name of a plug-in. You cannot remove either the cache or proxy plug-ins that are created when the server is installed. This method will disconnect all clients for both an on-demand and broadcast publishing point.
A forward slash mark (/) cannot be used as the leading or trailing character unless it is the only character.
Example Code
EXIT: // TODO: Release temporary COM objects and uninitialize COM.
Requirements
Header: wmsserver.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
Previous | Next |