System.Security.Principal.NTAccount.IsValidTargetType C# (CSharp) Method

IsValidTargetType() public method

public IsValidTargetType ( Type targetType ) : bool
targetType Type
return bool
        public override bool IsValidTargetType(Type targetType)
        {
            if (targetType == typeof(SecurityIdentifier))
            {
                return true;
            }
            else if (targetType == typeof(NTAccount))
            {
                return true;
            }
            else
            {
                return false;
            }
        }