MSFT_SmbConnection class
Represents a connection established from an SMB client to an SMB server from the client's perspective.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class MSFT_SmbConnection
{
string ServerName;
string ShareName;
string UserName;
string Credential;
uint64 NumOpens;
string Dialect;
boolean ContinuouslyAvailable;
boolean Encrypted;
};
Members
The MSFT_SmbConnection class has these types of members:
Methods
The MSFT_SmbConnection class has these methods.
| Method | Description |
|---|---|
| Create |
Establishes a connection to an SMB server. |
Properties
The MSFT_SmbConnection class has these properties.
- ContinuouslyAvailable
-
- Data type: boolean
- Access type: Read-only
true if the connection is continuously available.
- Credential
-
- Data type: string
- Access type: Read-only
The credential (domain + user name) that was used to establish the connection.
- Dialect
-
- Data type: string
- Access type: Read-only
The SMB version.
- Encrypted
-
- Data type: boolean
- Access type: Read-only
true if the connection established to the SMB server and share was encrypted.
- NumOpens
-
- Data type: uint64
- Access type: Read-only
Number of handles opened on the server and share.
- ServerName
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
The server name.
- ShareName
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
The name of the shared resource to which the connection is established.
- UserName
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
The user name that was used to establish the connection.
Requirements
|
Minimum supported client | Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Namespace |
\ROOT\Microsoft\Windows\Smb |
|
MOF |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 11/5/2012