Partager via


ProtectedFileProvider.CreateFileProvider Method

Definition

Overloads

CreateFileProvider(String, FileProtection)

Protect access to file usign the given protection level

CreateFileProvider(String, FileProtection, IDataStore)

Protect access to file usign the given protection level

CreateFileProvider(String, FileProtection)

Protect access to file usign the given protection level

public static Microsoft.Azure.Commands.Common.Authentication.ResourceManager.ProtectedFileProvider CreateFileProvider (string filePath, Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection protectionLevel = Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection.SharedRead);
static member CreateFileProvider : string * Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection -> Microsoft.Azure.Commands.Common.Authentication.ResourceManager.ProtectedFileProvider
Public Shared Function CreateFileProvider (filePath As String, Optional protectionLevel As FileProtection = Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection.SharedRead) As ProtectedFileProvider

Parameters

filePath
String

The path to the file

protectionLevel
FileProtection

The protection level over the file

Returns

A file provider with the specified access to the file

Applies to

CreateFileProvider(String, FileProtection, IDataStore)

Protect access to file usign the given protection level

public static Microsoft.Azure.Commands.Common.Authentication.ResourceManager.ProtectedFileProvider CreateFileProvider (string filePath, Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection protectionLevel, Microsoft.Azure.Commands.Common.Authentication.IDataStore dataStore);
static member CreateFileProvider : string * Microsoft.Azure.Commands.Common.Authentication.ResourceManager.FileProtection * Microsoft.Azure.Commands.Common.Authentication.IDataStore -> Microsoft.Azure.Commands.Common.Authentication.ResourceManager.ProtectedFileProvider
Public Shared Function CreateFileProvider (filePath As String, protectionLevel As FileProtection, dataStore As IDataStore) As ProtectedFileProvider

Parameters

filePath
String

The path to the file

protectionLevel
FileProtection

The protection level over the file

dataStore
IDataStore

The data store to use for file access

Returns

A file provider with the specified access to the file

Applies to