HostEnumerateShares Method (String, Boolean) |
Enumerates Server Message Block (SMB) shares from the specified host.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static IEnumerable<ShareInfo> EnumerateShares(
string host,
bool continueOnException
)
Public Shared Function EnumerateShares (
host As String,
continueOnException As Boolean
) As IEnumerable(Of ShareInfo)
public:
static IEnumerable<ShareInfo^>^ EnumerateShares(
String^ host,
bool continueOnException
)
static member EnumerateShares :
host : string *
continueOnException : bool -> IEnumerable<ShareInfo>
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:
IEnumerableShareInfoReturns
IEnumerableT shares from the specified host.
See Also