System.Security.Principal.IdentityReference.Equals C# (CSharp) Method

Equals() public abstract method

public abstract Equals ( object o ) : bool
o object
return bool
		public abstract override bool Equals (object o);

Usage Example

Beispiel #1
0
        /// <summary>
        /// Processes the authentication data of a Windows identity
        /// </summary>
        /// <param name="rule">FileSystemAccessRule</param>
        /// <param name="identity"></param>
        private void HandleFileSystemAccessRule(FileSystemAccessRule rule, IdentityReference identity)
        {
            if (rule == null)
            {
                return;
            }

            // Ignore all other users
            if (identity.Equals(rule.IdentityReference))
            {
                HandleAccessControlType(rule);
            }
        }