Create() public static méthode

public static Create ( string protectionDescriptor ) : NCryptProtectionDescriptorHandle
protectionDescriptor string
Résultat NCryptProtectionDescriptorHandle
 // ASP.NET will call this API for us automatically. The 'applicationName' parameter comes from config,
 // and the 'primaryPurpose' and 'specificPurposes' parameters are generated automatically.
 public DpapiNGDataProtector(string protectionDescriptor, string applicationName, string primaryPurpose, string[] specificPurposes)
     : base(applicationName, primaryPurpose, specificPurposes)
 {
     _protectionDescriptorLazy = new Lazy<NCryptProtectionDescriptorHandle>(() => NCryptProtectionDescriptorHandle.Create(protectionDescriptor));
 }