Host.GetShareInfo Method (ShareInfoLevel, String, String, Boolean)
Click or drag to resize
HostGetShareInfo Method (ShareInfoLevel, String, String, Boolean)
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.

Namespace: Alphaleonis.Win32.Network
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
public static ShareInfo GetShareInfo(
	ShareInfoLevel shareLevel,
	string host,
	string share,
	bool continueOnException


Type: Alphaleonis.Win32.NetworkShareInfoLevel
One of the ShareInfoLevel options.
Type: SystemString
A string that specifies the DNS or NetBIOS name of the specified host.
Type: SystemString
A string that specifies the name of the Server Message Block (SMB) share.
Type: SystemBoolean
to suppress any Exception that might be thrown a result from a failure, such as unavailable resources.

Return Value

Type: ShareInfo
A ShareInfo class, or on failure or when not available, and continueOnException is .
See Also