Host.EnumerateShares Method (String, Boolean)
Click or drag to resize
HostEnumerateShares Method (String, Boolean)
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,
	bool continueOnException
)

Parameters

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

suppress any Exception that might be thrown a result from a failure,

such as unavailable resources.

Return Value

Type: IEnumerableShareInfo
Returns IEnumerableT shares from the specified host.
See Also