Επεξεργασία

Κοινή χρήση μέσω


EncryptedPackageEnvelope.Open Method

Definition

Opens the encrypted package in an OLE compound file.

Overloads

Open(Stream)

Open the encrypted package in the specified stream.

Open(String)

Open the encrypted package in the specified file as read only and unshared.

Open(String, FileAccess)

Open the encrypted package in the specified file as unshared and with the specified access.

Open(String, FileAccess, FileShare)

Open the encrypted package in the specified file and gives it the specified access and sharing.

Open(Stream)

Open the encrypted package in the specified stream.

public:
 static System::IO::Packaging::EncryptedPackageEnvelope ^ Open(System::IO::Stream ^ envelopeStream);
public static System.IO.Packaging.EncryptedPackageEnvelope Open (System.IO.Stream envelopeStream);
static member Open : System.IO.Stream -> System.IO.Packaging.EncryptedPackageEnvelope
Public Shared Function Open (envelopeStream As Stream) As EncryptedPackageEnvelope

Parameters

envelopeStream
Stream

The stream containing the encrypted package.

Returns

The EncryptedPackageEnvelope that is opened.

Remarks

The stream must have an encrypted package.

Applies to

Open(String)

Open the encrypted package in the specified file as read only and unshared.

public:
 static System::IO::Packaging::EncryptedPackageEnvelope ^ Open(System::String ^ envelopeFileName);
public static System.IO.Packaging.EncryptedPackageEnvelope Open (string envelopeFileName);
static member Open : string -> System.IO.Packaging.EncryptedPackageEnvelope
Public Shared Function Open (envelopeFileName As String) As EncryptedPackageEnvelope

Parameters

envelopeFileName
String

The file containing the encrypted package.

Returns

The EncryptedPackageEnvelope that is opened.

Remarks

The file must have an encrypted package.

The opened file is read only and unshared.

See also

Applies to

Open(String, FileAccess)

Open the encrypted package in the specified file as unshared and with the specified access.

public:
 static System::IO::Packaging::EncryptedPackageEnvelope ^ Open(System::String ^ envelopeFileName, System::IO::FileAccess access);
public static System.IO.Packaging.EncryptedPackageEnvelope Open (string envelopeFileName, System.IO.FileAccess access);
static member Open : string * System.IO.FileAccess -> System.IO.Packaging.EncryptedPackageEnvelope
Public Shared Function Open (envelopeFileName As String, access As FileAccess) As EncryptedPackageEnvelope

Parameters

envelopeFileName
String

The file containing the encrypted package.

access
FileAccess

The type of access.

Returns

The EncryptedPackageEnvelope that is opened.

Remarks

The file must have an encrypted package.

The opened file is unshared.

See also

Applies to

Open(String, FileAccess, FileShare)

Open the encrypted package in the specified file and gives it the specified access and sharing.

public:
 static System::IO::Packaging::EncryptedPackageEnvelope ^ Open(System::String ^ envelopeFileName, System::IO::FileAccess access, System::IO::FileShare sharing);
public static System.IO.Packaging.EncryptedPackageEnvelope Open (string envelopeFileName, System.IO.FileAccess access, System.IO.FileShare sharing);
static member Open : string * System.IO.FileAccess * System.IO.FileShare -> System.IO.Packaging.EncryptedPackageEnvelope
Public Shared Function Open (envelopeFileName As String, access As FileAccess, sharing As FileShare) As EncryptedPackageEnvelope

Parameters

envelopeFileName
String

The file containing the encrypted package.

access
FileAccess

The type of access.

sharing
FileShare

The type of sharing.

Returns

The EncryptedPackageEnvelope that is opened.

Remarks

The file must have an encrypted package.

See also

Applies to