IWMSOutgoingDistributionConnections.RemoveAll (C#)
.gif)
| Previous | Next |
IWMSOutgoingDistributionConnections.RemoveAll (C#)
The RemoveAll method removes all IWMSOutgoingDistributionConnection objects from the IWMSOutgoingDistributionConnections collection.
Syntax
IWMSOutgoingDistributionConnections .RemoveAll();
Parameters
This method takes no parameters.
Return Values
This method does not return a value.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSOutgoingDistributionConnections Connections;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSOutgoingDistributionConnections object.
Connections = Server.OutgoingDistributionConnections;
// Remove all of the connections from the collection.
Connections.RemoveAll();
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.
See Also
| Previous | Next |