C# Class Dev2.InterfaceImplementors.ShareCollection

A collection of shares
Inheritance: System.Collections.ReadOnlyCollectionBase
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Méthode Description
ShareCollection ( ) : System

Default constructor - local machine

ShareCollection ( string server ) : System

Méthodes protégées

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

Private Methods

Méthode 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 méthode

protected Add ( string netName, string path, ShareType shareType, string remark ) : void
netName string
path string
shareType ShareType
remark string
Résultat void

EnumerateShares() protected static méthode

protected static EnumerateShares ( string server, ShareCollection shares ) : void
server string
shares ShareCollection
Résultat void

ShareCollection() public méthode

Default constructor - local machine
public ShareCollection ( ) : System
Résultat System

ShareCollection() public méthode

public ShareCollection ( string server ) : System
server string
Résultat System