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 may be combined.

Value Description
1 Read
2 Write
4 Delete
7 All

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 what 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.

See Also

Channels object

© 1996-1998 Microsoft Corporation. All rights reserved.