EncryptedPackageEnvelope 類別

定義

代表包含加密封裝的 OLE 複合檔案 (Compound File)。Represents an OLE compound file that contains an encrypted package.

public ref class EncryptedPackageEnvelope : IDisposable
public class EncryptedPackageEnvelope : IDisposable
type EncryptedPackageEnvelope = class
    interface IDisposable
Public Class EncryptedPackageEnvelope
Implements IDisposable
繼承
EncryptedPackageEnvelope
實作

備註

EncryptedPackageEnvelope 沒有公用的函式。EncryptedPackageEnvelope has no public constructors. @No__t-0 是藉由使用靜態 CreateCreateFromPackage 或 @no__t 3 方法所建立。An EncryptedPackageEnvelope is created by use of the static Create, CreateFromPackage, or Open methods.

屬性

FileOpenAccess

取得值,指出開啟檔案時使用的是讀取權限、寫入權限或兩者。Gets a value that specifies whether the file was opened with access to read, write, or both.

PackageProperties

取得權限 Managed 文件的核心封裝屬性 (例如 Title 和 Subject)。Gets the core package properties (such as Title and Subject) of the rights managed document.

RightsManagementInformation

取得儲存在 EncryptedPackageEnvelope 中的版權管理資訊;具體來說就是儲存在包含版權管理保護套件 OLE 複合檔案中的 PublishLicenseUseLicenseGets the rights management information stored in the EncryptedPackageEnvelope; specifically, the PublishLicense and the UseLicenses stored in the OLE compound file that embodies the rights-management protected package.

StorageInfo

取得可用來存取加密封裝外部之複合檔案資料流的物件。Gets an object that provides access to the compound file streams outside the encrypted package.

方法

Close()

關閉加密封裝及保存該封裝的 OLE 複合檔案。Closes the encrypted package and the OLE compound file that holds it.

Create(Stream, PublishLicense, CryptoProvider)

在指定的資料流上建立及傳回 EncryptedPackageEnvelopeCreates and returns an EncryptedPackageEnvelope on the specified stream.

Create(String, PublishLicense, CryptoProvider)

建立及傳回 EncryptedPackageEnvelope,並為其提供指定的檔名。Creates and returns an EncryptedPackageEnvelope and gives it the specified file name.

CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider)

建立及傳回使用指定之未加密封裝做為其內容的 EncryptedPackageEnvelope (在指定的資料流上)。Creates and returns an EncryptedPackageEnvelope (on the specified stream) that uses the specified unencrypted package as its content.

CreateFromPackage(String, Stream, PublishLicense, CryptoProvider)

建立及傳回使用指定之未加密封裝做為其內容的 EncryptedPackageEnvelope,並為其提供指定的檔名。Creates and returns an EncryptedPackageEnvelope that uses the specified unencrypted package as its content, and gives it the specified file name.

Dispose()

釋放 EncryptedPackageEnvelope 所使用的所有資源。Releases all resources used by the EncryptedPackageEnvelope.

Dispose(Boolean)

釋放 EncryptedPackageEnvelope 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the EncryptedPackageEnvelope and optionally releases the managed resources.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Flush()

清除 EncryptedPackageEnvelope 及其封裝內容的資料流。Flush the stream for both the EncryptedPackageEnvelope and its package content.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetPackage()

取得 EncryptedPackageEnvelope 內的加密封裝。Gets the encrypted package inside the EncryptedPackageEnvelope.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IsEncryptedPackageEnvelope(Stream)

取得值,指出指定的資料流是否為具有加密封裝資料流的 OLE 複合檔案。Gets a value specifying whether the specified stream is an OLE compound file with an encrypted package stream.

IsEncryptedPackageEnvelope(String)

取得值,指出指定的檔案是否為具有加密封裝資料流的 OLE 複合檔案。Gets a value specifying whether the specified file is an OLE compound file with an encrypted package stream.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
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.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於