C# Class Dev2.Intellisense.Helper.ShareCollection

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

Public Methods

Method Description
ShareCollection ( IEnumerable shares ) : 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
ShareCollection ( ) : System

Default constructor - local machine

ShareCollection ( string server ) : System

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

public ShareCollection ( IEnumerable shares ) : System
shares IEnumerable
return System