Class WindowsNetworkFileShare
For interacting with SMB network file shares on Windows.
Inheritance
System.Object
WindowsNetworkFileShare
Namespace: Steeltoe.Common.Net
Assembly: Steeltoe.Common.Net.dll
Syntax
public sealed class WindowsNetworkFileShare : IDisposable
Constructors
| Edit this page View SourceWindowsNetworkFileShare(String, NetworkCredential)
Initializes a new instance of the WindowsNetworkFileShare class.
Declaration
public WindowsNetworkFileShare(string networkName, NetworkCredential credentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | networkName | The IP address or hostname of the remote file share. |
NetworkCredential | credentials | The username and password for accessing the file share. |
Methods
| Edit this page View SourceDispose()
Disconnects the file share.
Declaration
public void Dispose()