System.IO.Pipes.PipeSecurity.AccessRuleFactory C# (CSharp) Méthode

AccessRuleFactory() public méthode

public AccessRuleFactory ( IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type ) : AccessRule
identityReference IdentityReference
accessMask int
isInherited bool
inheritanceFlags InheritanceFlags
propagationFlags PropagationFlags
type AccessControlType
Résultat AccessRule
        public override AccessRule AccessRuleFactory(IdentityReference identityReference,
                int accessMask, bool isInherited, InheritanceFlags inheritanceFlags,
                PropagationFlags propagationFlags, AccessControlType type)
        {
            // Throw if inheritance flags or propagation flags set. Have to include in signature
            // since this is an override
            if (inheritanceFlags != InheritanceFlags.None)
            {
                throw new ArgumentException(SR.Argument_NonContainerInvalidAnyFlag, nameof(inheritanceFlags));
            }
            if (propagationFlags != PropagationFlags.None)
            {
                throw new ArgumentException(SR.Argument_NonContainerInvalidAnyFlag, nameof(propagationFlags));
            }

            return new PipeAccessRule(
                identityReference,
                accessMask,
                isInherited,
                type);

        }

Same methods

PipeSecurity::AccessRuleFactory ( System identityReference, int accessMask, bool isInherited, System inheritanceFlags, System propagationFlags, System type ) : System.Security.AccessControl.AccessRule