vshed.IO.UncShare
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package vshed.IO.UncShare --version 1.0.1
NuGet\Install-Package vshed.IO.UncShare -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="vshed.IO.UncShare" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vshed.IO.UncShare --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: vshed.IO.UncShare, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install vshed.IO.UncShare as a Cake Addin #addin nuget:?package=vshed.IO.UncShare&version=1.0.1 // Install vshed.IO.UncShare as a Cake Tool #tool nuget:?package=vshed.IO.UncShare&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
vshed.IO.UncShare
Library for accessing UNC Shares with an alternative identity
Example Usage
try
{
using (var share = new UncShare(@"\\hostName\networkShareName", "userAccount", "password"))
{
Assert.IsTrue(share.GetFiles().Length >= 1);
if (share.GetFiles().Length >= 1)
Console.WriteLine("Files found");
else
Console.WriteLine("No files found");
}
}
catch (System.ComponentModel.Win32Exception ex)
{
if (ex.Message == "The network path was not found")
Console.WriteLine("The specified UNC Path could not be found");
else if (ex.Message == "The user name or password is incorrect")
Console.WriteLine("The specified Username or Password is invalid");
else
Console.WriteLine(ex.Message);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release