共用方式為


ProtectedFileProvider Class

Definition

Protect access to a shared file. File can be accessed in ReadOnly or ReadWrite mode

public abstract class ProtectedFileProvider : IDisposable, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IFileProvider
type ProtectedFileProvider = class
    interface IFileProvider
    interface IDisposable
Public MustInherit Class ProtectedFileProvider
Implements IDisposable, IFileProvider
Inheritance
ProtectedFileProvider
Implements

Constructors

ProtectedFileProvider()

Fields

_stream
MaxTries

Properties

DataStore
FilePath
Stream

Methods

AcquireLock(String)
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

CreateReader()

A reader for the stream associated with this file provider

CreateWriter()

A reader for the stream associated with this file provider

Dispose()

Dispose the file and the file lock

Dispose(Boolean)
InitializeStream()

Applies to