你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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