DpapiDataProtector.Scope 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定資料保護的範圍。
public:
property System::Security::Cryptography::DataProtectionScope Scope { System::Security::Cryptography::DataProtectionScope get(); void set(System::Security::Cryptography::DataProtectionScope value); };
public System.Security.Cryptography.DataProtectionScope Scope { get; set; }
member this.Scope : System.Security.Cryptography.DataProtectionScope with get, set
Public Property Scope As DataProtectionScope
屬性值
其中一個列舉值,用來指定資料保護範圍(無論是目前使用者還是本地機器)。 預設值為 CurrentUser。
備註
資料保護會加密磁碟上的資料,防止其他程式讀取。 你不需要金鑰來保護或解除保護資料。 如果你設定 Scope 到 CurrentUser,只有運行在你憑證上的應用程式才能解除資料保護;但這表示任何在你憑證上運行的應用程式都能存取受保護的資料。 如果你設定 Scope , LocalMachine任何電腦上的全信任應用程式只要知道應用程式名稱、主要目的和特定用途,就能解除保護、存取並修改資料。