Windows Media Services SDK banner art
PreviousNext

Channels.Open Method

Opens a Channel object.

Syntax

NSChannelMgr.Channels.Open( StationName, PeerAccess )

Parameters

StationName

A String value specifying the name of the station to be opened.

PeerAccess

The peer access of the station. The values can be combined.

Value Description Mnemonic
1 Read MCM_PA_READ
2 Write MCM_PA_WRITE
4 Delete MCM_PA_DELETE
7 All MCM_PA_ALL_ACCESS

Return Values

Returns a Channel object.

Example

NSChannelMgr.Connect "LocalHost"
Dim Stations
Set Stations = NSChannelMgr.Channels
' Create station "OHlive", give other servers read-only access
Stations.Open "OHlive", 1

Remarks

The peer access determines which permissions other administrative clients have. For example, opening a stream with delete access allows other clients to delete the stream. These permissions are reset when the current connection is closed.

It is possible to create a station without a name by specifying an empty string as the name. However, a nameless station cannot be edited in the Windows Media Station service administration application. It can be deleted in the administration application, or by using the Channel.Close method.

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.