Click or drag to resize

HostEnumerateShares Method (String)

Enumerates Server Message Block (SMB) shares from the specified host.

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static IEnumerable<ShareInfo> EnumerateShares(
	string host
)

Parameters

host
Type: SystemString
The DNS or NetBIOS name of the specified host.

Return Value

Type: IEnumerableShareInfo
IEnumerableT shares from the specified host.
Remarks
This method also enumerates hidden shares.
See Also