ObjectSecurity.Persist Metoda

Definicja

Metody chronione, które zapisują informacje deskryptora zabezpieczeń w tym ObjectSecurity obiekcie w magazynie trwałym.

Przeciążenia

Persist(SafeHandle, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

Persist(String, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

Persist(Boolean, String, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

Persist(SafeHandle, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

protected:
 virtual void Persist(System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist (System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (handle As SafeHandle, includeSections As AccessControlSections)

Parametry

handle
SafeHandle

Uchwyt używany do pobierania utrwalonego informacji.

includeSections
AccessControlSections

AccessControlSections Jedna z wartości wyliczenia, która określa sekcje deskryptora zabezpieczeń (reguły dostępu, reguły inspekcji, właściciel, grupa podstawowa) zabezpieczanego obiektu do zapisania.

Uwagi

W przypadku utrwalania ObjectSecurity obiektu, jeśli wartość parametru przekazanego includeSections do Persist metody nie jest identyczna z wartością includeSections parametru przekazanego do konstruktora użytego do utworzenia tego ObjectSecurity obiektu, sekcje utrwalonego ObjectSecurity obiektu mogą zawierać nieprzewidywalne wartości. Jeśli na przykład konstruktor jest wywoływany z wartością includeSectionsAccess, a później Persist metoda jest wywoływana dla tego obiektu z wartością includeSectionsAll, wynikowy ObjectSecurity utrwalonego obiektu będzie zawierać nieprzewidywalne wartości dla jego reguł inspekcji, grupy i właściciela.

Dotyczy

Persist(String, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

protected:
 virtual void Persist(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist (string name, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : string * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (name As String, includeSections As AccessControlSections)

Parametry

name
String

Nazwa używana do pobierania utrwalonej informacji.

includeSections
AccessControlSections

AccessControlSections Jedna z wartości wyliczenia, która określa sekcje deskryptora zabezpieczeń (reguły dostępu, reguły inspekcji, właściciel, grupa podstawowa) zabezpieczanego obiektu do zapisania.

Uwagi

W przypadku utrwalania ObjectSecurity obiektu, jeśli wartość parametru przekazanego includeSections do Persist metody nie jest identyczna z wartością includeSections parametru przekazanego do konstruktora użytego do utworzenia tego ObjectSecurity obiektu, sekcje utrwalonego ObjectSecurity obiektu mogą zawierać nieprzewidywalne wartości. Jeśli na przykład konstruktor jest wywoływany z wartością includeSectionsAccess, a później Persist metoda jest wywoływana dla tego obiektu z wartością includeSectionsAll, wynikowy ObjectSecurity utrwalonego obiektu będzie zawierać nieprzewidywalne wartości dla jego reguł inspekcji, grupy i właściciela.

Dotyczy

Persist(Boolean, String, AccessControlSections)

Zapisuje określone sekcje deskryptora zabezpieczeń skojarzonego z tym ObjectSecurity obiektem w magazynie trwałym. Zalecamy, aby wartości parametrów przekazanych includeSections do konstruktora i metod utrwalone zostały identyczne.

protected:
 virtual void Persist(bool enableOwnershipPrivilege, System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist (bool enableOwnershipPrivilege, string name, System.Security.AccessControl.AccessControlSections includeSections);
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
protected virtual void Persist (bool enableOwnershipPrivilege, string name, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
[<System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions>]
abstract member Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (enableOwnershipPrivilege As Boolean, name As String, includeSections As AccessControlSections)

Parametry

enableOwnershipPrivilege
Boolean

true aby włączyć uprawnienie, które umożliwia obiektowi wywołującego przejęcie na własność obiektu.

name
String

Nazwa używana do pobierania utrwalonej informacji.

includeSections
AccessControlSections

AccessControlSections Jedna z wartości wyliczenia, która określa sekcje deskryptora zabezpieczeń (reguły dostępu, reguły inspekcji, właściciel, grupa podstawowa) zabezpieczanego obiektu do zapisania.

Atrybuty

Uwagi

W przypadku utrwalania ObjectSecurity obiektu, jeśli wartość parametru przekazanego includeSections do Persist metody nie jest identyczna z wartością includeSections parametru przekazanego do konstruktora użytego do utworzenia tego ObjectSecurity obiektu, sekcje utrwalonego ObjectSecurity obiektu mogą zawierać nieprzewidywalne wartości. Jeśli na przykład konstruktor jest wywoływany z wartością includeSectionsAccess, a później Persist metoda jest wywoływana dla tego obiektu z wartością includeSectionsAll, wynikowy ObjectSecurity utrwalonego obiektu będzie zawierać nieprzewidywalne wartości dla jego reguł inspekcji, grupy i właściciela.

Dotyczy