Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSOutgoingDistributionConnections Object (C#)
The IWMSOutgoingDistributionConnections object contains a collection of IWMSOutgoingDistributionConnection objects.
The IWMSOutgoingDistributionConnections object exposes the following properties and methods.
| Property | Description |
| Count | Retrieves the number of IWMSOutgoingDistributionConnection objects contained in the IWMSOutgoingDistributionConnections collection. |
| length | Retrieves the number of IWMSOutgoingDistributionConnection objects contained in the IWMSOutgoingDistributionConnections collection. This method is provided for JScript compatibility. |
| Method | Description |
| Refresh | Updates the list of IWMSOutgoingDistributionConnection objects in the IWMSOutgoingDistributionConnections collection. |
| Remove | Removes an IWMSOutgoingDistributionConnection object from the IWMSOutgoingDistributionConnections collection. |
| RemoveAll | Removes all IWMSOutgoingDistributionConnection objects from the IWMSOutgoingDistributionConnections collection. |
In C#, there are two ways to access objects in a collection:
- Access individual objects directly by using a string (where applicable)
- Iterate through the objects by using an index
You must use array notation when retrieving objects from a collection, except when using the get_Item method.
Example Code
The following example illustrates how to retrieve an IWMSOutgoingDistributionConnections object.
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;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
See Also
| Previous | Next |