Click or drag to resize

HostEnumerateShares Method (ShareType, Boolean)

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

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static IEnumerable<ShareInfo> EnumerateShares(
	ShareType shareType,
	bool continueOnException
)

Parameters

shareType
Type: Alphaleonis.Win32.NetworkShareType
The type of the shared resource to retrieve.
continueOnException
Type: SystemBoolean
suppress any Exception that might be thrown as a result from a failure, such as unavailable resources.

Return Value

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