Search Results for

    Show / Hide Table of Contents

    Class ObjectSecurity<T>

    Inheritance
    System.Object
    ObjectSecurity
    CommonObjectSecurity
    NativeObjectSecurity
    ObjectSecurity<T>
    Inherited Members
    NativeObjectSecurity.Persist(SafeHandle, AccessControlSections)
    NativeObjectSecurity.Persist(SafeHandle, AccessControlSections, Object)
    NativeObjectSecurity.Persist(String, AccessControlSections)
    NativeObjectSecurity.Persist(String, AccessControlSections, Object)
    CommonObjectSecurity.AddAccessRule(AccessRule)
    CommonObjectSecurity.AddAuditRule(AuditRule)
    CommonObjectSecurity.GetAccessRules(Boolean, Boolean, Type)
    CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type)
    CommonObjectSecurity.ModifyAccess(AccessControlModification, AccessRule, Boolean)
    CommonObjectSecurity.ModifyAudit(AccessControlModification, AuditRule, Boolean)
    CommonObjectSecurity.RemoveAccessRule(AccessRule)
    CommonObjectSecurity.RemoveAccessRuleAll(AccessRule)
    CommonObjectSecurity.RemoveAccessRuleSpecific(AccessRule)
    CommonObjectSecurity.RemoveAuditRule(AuditRule)
    CommonObjectSecurity.RemoveAuditRuleAll(AuditRule)
    CommonObjectSecurity.RemoveAuditRuleSpecific(AuditRule)
    CommonObjectSecurity.ResetAccessRule(AccessRule)
    CommonObjectSecurity.SetAccessRule(AccessRule)
    CommonObjectSecurity.SetAuditRule(AuditRule)
    ObjectSecurity.GetGroup(Type)
    ObjectSecurity.GetOwner(Type)
    ObjectSecurity.GetSecurityDescriptorBinaryForm()
    ObjectSecurity.GetSecurityDescriptorSddlForm(AccessControlSections)
    ObjectSecurity.IsSddlConversionSupported()
    ObjectSecurity.ModifyAccessRule(AccessControlModification, AccessRule, Boolean)
    ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean)
    ObjectSecurity.Persist(Boolean, String, AccessControlSections)
    ObjectSecurity.PurgeAccessRules(IdentityReference)
    ObjectSecurity.PurgeAuditRules(IdentityReference)
    ObjectSecurity.ReadLock()
    ObjectSecurity.ReadUnlock()
    ObjectSecurity.SetAccessRuleProtection(Boolean, Boolean)
    ObjectSecurity.SetAuditRuleProtection(Boolean, Boolean)
    ObjectSecurity.SetGroup(IdentityReference)
    ObjectSecurity.SetOwner(IdentityReference)
    ObjectSecurity.SetSecurityDescriptorBinaryForm(Byte[])
    ObjectSecurity.SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)
    ObjectSecurity.SetSecurityDescriptorSddlForm(String)
    ObjectSecurity.SetSecurityDescriptorSddlForm(String, AccessControlSections)
    ObjectSecurity.WriteLock()
    ObjectSecurity.WriteUnlock()
    ObjectSecurity.AccessRulesModified
    ObjectSecurity.AreAccessRulesCanonical
    ObjectSecurity.AreAccessRulesProtected
    ObjectSecurity.AreAuditRulesCanonical
    ObjectSecurity.AreAuditRulesProtected
    ObjectSecurity.AuditRulesModified
    ObjectSecurity.GroupModified
    ObjectSecurity.IsContainer
    ObjectSecurity.IsDS
    ObjectSecurity.OwnerModified
    ObjectSecurity.SecurityDescriptor
    Namespace: System.Security.AccessControl
    Assembly: IronZip.dll
    Syntax
    public abstract class ObjectSecurity<T> : NativeObjectSecurity where T : struct, ValueType
    Type Parameters
    Name Description
    T

    Constructors

    ObjectSecurity(Boolean, ResourceType)

    Declaration
    protected ObjectSecurity(bool isContainer, ResourceType resourceType)
    Parameters
    Type Name Description
    System.Boolean isContainer
    ResourceType resourceType

    ObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections)

    Declaration
    protected ObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle safeHandle, AccessControlSections includeSections)
    Parameters
    Type Name Description
    System.Boolean isContainer
    ResourceType resourceType
    System.Runtime.InteropServices.SafeHandle safeHandle
    AccessControlSections includeSections

    ObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object)

    Declaration
    protected ObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle safeHandle, AccessControlSections includeSections, NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
    Parameters
    Type Name Description
    System.Boolean isContainer
    ResourceType resourceType
    System.Runtime.InteropServices.SafeHandle safeHandle
    AccessControlSections includeSections
    NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode
    System.Object exceptionContext

    ObjectSecurity(Boolean, ResourceType, String, AccessControlSections)

    Declaration
    protected ObjectSecurity(bool isContainer, ResourceType resourceType, string name, AccessControlSections includeSections)
    Parameters
    Type Name Description
    System.Boolean isContainer
    ResourceType resourceType
    System.String name
    AccessControlSections includeSections

    ObjectSecurity(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object)

    Declaration
    protected ObjectSecurity(bool isContainer, ResourceType resourceType, string name, AccessControlSections includeSections, NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
    Parameters
    Type Name Description
    System.Boolean isContainer
    ResourceType resourceType
    System.String name
    AccessControlSections includeSections
    NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode
    System.Object exceptionContext

    Properties

    AccessRightType

    Declaration
    public override Type AccessRightType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    ObjectSecurity.AccessRightType

    AccessRuleType

    Declaration
    public override Type AccessRuleType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    ObjectSecurity.AccessRuleType

    AuditRuleType

    Declaration
    public override Type AuditRuleType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    ObjectSecurity.AuditRuleType

    Methods

    AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

    Declaration
    public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
    Parameters
    Type Name Description
    IdentityReference identityReference
    System.Int32 accessMask
    System.Boolean isInherited
    InheritanceFlags inheritanceFlags
    PropagationFlags propagationFlags
    AccessControlType type
    Returns
    Type Description
    AccessRule
    Overrides
    ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

    AddAccessRule(AccessRule<T>)

    Declaration
    public virtual void AddAccessRule(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule

    AddAuditRule(AuditRule<T>)

    Declaration
    public virtual void AddAuditRule(AuditRule<T> rule)
    Parameters
    Type Name Description
    AuditRule<T> rule

    AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

    Declaration
    public override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
    Parameters
    Type Name Description
    IdentityReference identityReference
    System.Int32 accessMask
    System.Boolean isInherited
    InheritanceFlags inheritanceFlags
    PropagationFlags propagationFlags
    AuditFlags flags
    Returns
    Type Description
    AuditRule
    Overrides
    ObjectSecurity.AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

    Persist(SafeHandle)

    Declaration
    protected void Persist(SafeHandle handle)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.SafeHandle handle

    Persist(String)

    Declaration
    protected void Persist(string name)
    Parameters
    Type Name Description
    System.String name

    RemoveAccessRule(AccessRule<T>)

    Declaration
    public virtual bool RemoveAccessRule(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule
    Returns
    Type Description
    System.Boolean

    RemoveAccessRuleAll(AccessRule<T>)

    Declaration
    public virtual void RemoveAccessRuleAll(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule

    RemoveAccessRuleSpecific(AccessRule<T>)

    Declaration
    public virtual void RemoveAccessRuleSpecific(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule

    RemoveAuditRule(AuditRule<T>)

    Declaration
    public virtual bool RemoveAuditRule(AuditRule<T> rule)
    Parameters
    Type Name Description
    AuditRule<T> rule
    Returns
    Type Description
    System.Boolean

    RemoveAuditRuleAll(AuditRule<T>)

    Declaration
    public virtual void RemoveAuditRuleAll(AuditRule<T> rule)
    Parameters
    Type Name Description
    AuditRule<T> rule

    RemoveAuditRuleSpecific(AuditRule<T>)

    Declaration
    public virtual void RemoveAuditRuleSpecific(AuditRule<T> rule)
    Parameters
    Type Name Description
    AuditRule<T> rule

    ResetAccessRule(AccessRule<T>)

    Declaration
    public virtual void ResetAccessRule(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule

    SetAccessRule(AccessRule<T>)

    Declaration
    public virtual void SetAccessRule(AccessRule<T> rule)
    Parameters
    Type Name Description
    AccessRule<T> rule

    SetAuditRule(AuditRule<T>)

    Declaration
    public virtual void SetAuditRule(AuditRule<T> rule)
    Parameters
    Type Name Description
    AuditRule<T> rule

    Inherited members

    Persist(SafeHandle, AccessControlSections)
    Persist(SafeHandle, AccessControlSections, Object)
    Persist(String, AccessControlSections)
    Persist(String, AccessControlSections, Object)
    AddAccessRule(AccessRule)
    AddAuditRule(AuditRule)
    GetAccessRules(Boolean, Boolean, Type)
    GetAuditRules(Boolean, Boolean, Type)
    ModifyAccess(AccessControlModification, AccessRule, Boolean)
    ModifyAudit(AccessControlModification, AuditRule, Boolean)
    RemoveAccessRule(AccessRule)
    RemoveAccessRuleAll(AccessRule)
    RemoveAccessRuleSpecific(AccessRule)
    RemoveAuditRule(AuditRule)
    RemoveAuditRuleAll(AuditRule)
    RemoveAuditRuleSpecific(AuditRule)
    ResetAccessRule(AccessRule)
    SetAccessRule(AccessRule)
    SetAuditRule(AuditRule)
    GetGroup(Type)
    GetOwner(Type)
    GetSecurityDescriptorBinaryForm()
    GetSecurityDescriptorSddlForm(AccessControlSections)
    IsSddlConversionSupported()
    ModifyAccessRule(AccessControlModification, AccessRule, Boolean)
    ModifyAuditRule(AccessControlModification, AuditRule, Boolean)
    Persist(Boolean, String, AccessControlSections)
    PurgeAccessRules(IdentityReference)
    PurgeAuditRules(IdentityReference)
    ReadLock()
    ReadUnlock()
    SetAccessRuleProtection(Boolean, Boolean)
    SetAuditRuleProtection(Boolean, Boolean)
    SetGroup(IdentityReference)
    SetOwner(IdentityReference)
    SetSecurityDescriptorBinaryForm(Byte[])
    SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)
    SetSecurityDescriptorSddlForm(String)
    SetSecurityDescriptorSddlForm(String, AccessControlSections)
    WriteLock()
    WriteUnlock()
    AccessRulesModified
    AreAccessRulesCanonical
    AreAccessRulesProtected
    AreAuditRulesCanonical
    AreAuditRulesProtected
    AuditRulesModified
    GroupModified
    IsContainer
    IsDS
    OwnerModified
    SecurityDescriptor
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronZIP to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronZIP free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.