다음을 통해 공유


TeamFoundationIdentity Class

Represents a user or group in Team Foundation Server.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Server.Core.TeamFoundationIdentity

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public NotInheritable Class TeamFoundationIdentity
public sealed class TeamFoundationIdentity
public ref class TeamFoundationIdentity sealed
[<Sealed>]
type TeamFoundationIdentity =  class end
public final class TeamFoundationIdentity

The TeamFoundationIdentity type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationIdentity() Parameterless constructor for marshalling.
Public method TeamFoundationIdentity(TeamFoundationIdentity) Copy Constructor.
Public method TeamFoundationIdentity(IdentityDescriptor, String, Boolean, ICollection<IdentityDescriptor>, ICollection<IdentityDescriptor>) Constructor.

Top

Properties

  Name Description
Public property AttributesSet Property to marshal attributes.
Public property Descriptor The identity descriptor for this identity. The unique identifier for the identity's provider. Clients send identification to the server when they authenticate with TFS. Used for many identity management tasks such as AddMemberToApplicationGroup and ReadIdentity. TFS artifacts are either associated with this identifier or the identity's TeamFoundationId.
Public property DisplayName Full name of the identity for display purposes. The display name can come from the identity provider (Active Directory, ACS) or may have been set as a custom display name within TFS.
Public property IsActive Indicates that the identity is "current" with the provider (i.e. either read from source or being synced). It does not mean that it is a member of TFS Valid Users group (the "IsMember" query should be used to answer that).
Public property IsContainer Can this identity contain identities (i.e. is it a group)?
Public property LocalPropertiesSet
Public property MemberOf
Public property MemberOfSet IdentityDescriptors for groups containing this identity.
Public property Members
Public property MembersSet IdentityDescriptors for members of this identity.
Public property PropertiesSet
Public property TeamFoundationId Identifier assigned within TFS - unique within a host. TFS artifacts are either associated with this identifier or the identity's Descriptor.
Public property UniqueName
Public property UniqueUserId This represents the ID to distinguish deleted accounts from one another (joe:1 vs. joe:3).

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetAttribute Attribute accessor. Will return the caller supplied default value if attribute is not present (will not throw).
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetProperties() Property bag. This could be useful, for example if consumer has to iterate through current properties and modify / remove some based on pattern matching property names.
Public method GetProperties(IdentityPropertyScope) Property bag. This could be useful, for example if consumer has to iterate through current properties and modify / remove some based on pattern matching property names.
Public method GetProperty(String) Property accessor. Will throw if not found.
Public method GetProperty(IdentityPropertyScope, String) Property accessor. Will throw if not found.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method PrepareForWebServiceSerialization PrepareForWebServiceSerialization. .NET Xml serializer cannot handle dictionaries. Convert to array.
Public method RemoveProperty(String) Removes property, if it exists.
Public method RemoveProperty(IdentityPropertyScope, String) Removes property, if it exists.
Public method SetAttribute Sets an attribute. This method is obsolete, use SetProperty instead.
Public method SetProperty(String, Object) Sets a property, will overwrite if already set.
Public method SetProperty(IdentityPropertyScope, String, Object) Sets a property, will overwrite if already set.
Public method ToString (Overrides Object.ToString().)
Public method TryGetProperty(String, Object%) Property accessor. Will return null if not found.
Public method TryGetProperty(IdentityPropertyScope, String, Object%) Property accessor. Will return null if not found.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Server.Core Namespace