HostGetShareInfo Method (ShareInfoLevel, String, Boolean) |
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static ShareInfo GetShareInfo(
ShareInfoLevel shareLevel,
string uncPath,
bool continueOnException
)
Public Shared Function GetShareInfo (
shareLevel As ShareInfoLevel,
uncPath As String,
continueOnException As Boolean
) As ShareInfo
public:
static ShareInfo^ GetShareInfo(
ShareInfoLevel shareLevel,
String^ uncPath,
bool continueOnException
)
static member GetShareInfo :
shareLevel : ShareInfoLevel *
uncPath : string *
continueOnException : bool -> ShareInfo
Parameters
- shareLevel
- Type: Alphaleonis.Win32.NetworkShareInfoLevel
One of the ShareInfoLevel options. - uncPath
- Type: SystemString
The share in the format: \\host\share. - continueOnException
- 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