C# Class Dev2.InterfaceImplementors.ShareCollection

A collection of shares
Inheritance: System.Collections.ReadOnlyCollectionBase
Show file Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
ShareCollection ( ) : System

Default constructor - local machine

ShareCollection ( string server ) : System

Protected Methods

Method Description
Add ( string netName, string path, ShareType shareType, string remark ) : void
EnumerateShares ( string server, ShareCollection shares ) : void

Private Methods

Method Description
EnumerateSharesNt ( string server, ShareCollection shares ) : void
NetApiBufferFree ( IntPtr lpBuffer ) : int
NetShareEnum ( string lpServerName, int dwLevel, IntPtr &lpBuffer, int dwPrefMaxLen, int &entriesRead, int &totalEntries, int &hResume ) : int

Method Details

Add() protected method

protected Add ( string netName, string path, ShareType shareType, string remark ) : void
netName string
path string
shareType ShareType
remark string
return void

EnumerateShares() protected static method

protected static EnumerateShares ( string server, ShareCollection shares ) : void
server string
shares ShareCollection
return void

ShareCollection() public method

Default constructor - local machine
public ShareCollection ( ) : System
return System

ShareCollection() public method

public ShareCollection ( string server ) : System
server string
return System