mscorlib(4.0.0.0) API with additions
IdentityReference.cs
2 
4 {
6  [ComVisible(false)]
7  public abstract class IdentityReference
8  {
11  public abstract string Value
12  {
13  get;
14  }
15 
16  internal IdentityReference()
17  {
18  }
19 
28  public abstract bool IsValidTargetType(Type targetType);
29 
33  public abstract IdentityReference Translate(Type targetType);
34 
39  public abstract override bool Equals(object o);
40 
43  public abstract override int GetHashCode();
44 
47  public abstract override string ToString();
48 
54  public static bool operator ==(IdentityReference left, IdentityReference right)
55  {
56  if ((object)left == null && (object)right == null)
57  {
58  return true;
59  }
60  if ((object)left == null || (object)right == null)
61  {
62  return false;
63  }
64  return left.Equals(right);
65  }
66 
72  public static bool operator !=(IdentityReference left, IdentityReference right)
73  {
74  return !(left == right);
75  }
76  }
77 }
abstract override bool Equals(object o)
Returns a value that indicates whether the specified object equals this instance of the T:System....
static bool operator==(IdentityReference left, IdentityReference right)
Compares two T:System.Security.Principal.IdentityReference objects to determine whether they are equa...
Represents an identity and is the base class for the T:System.Security.Principal.NTAccount and T:Syst...
Definition: __Canon.cs:3
abstract override string ToString()
Returns the string representation of the identity represented by the T:System.Security....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
static bool operator !=(IdentityReference left, IdentityReference right)
Compares two T:System.Security.Principal.IdentityReference objects to determine whether they are not ...
abstract IdentityReference Translate(Type targetType)
Translates the account name represented by the T:System.Security.Principal.IdentityReference object i...
abstract bool IsValidTargetType(Type targetType)
Returns a value that indicates whether the specified type is a valid translation type for the T:Syste...
abstract string Value
Gets the string value of the identity represented by the T:System.Security.Principal....
abstract override int GetHashCode()
Serves as a hash function for T:System.Security.Principal.IdentityReference. M:System....