This documentation is archived and is not being maintained.

TeamFoundationIdentity Class

Visual Studio 2013

Represents a user or group in Team Foundation Server.

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

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

'Declaration
Public NotInheritable Class TeamFoundationIdentity

The TeamFoundationIdentity type exposes the following members.

  NameDescription
Public propertyAttributesSetProperty to marshal attributes.
Public propertyDescriptorThe 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 propertyDisplayNameFull 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 propertyIsActiveIndicates 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 propertyIsContainerCan this identity contain identities (i.e. is it a group)?
Public propertyLocalPropertiesSet
Public propertyMemberOf
Public propertyMemberOfSetIdentityDescriptors for groups containing this identity.
Public propertyMembers
Public propertyMembersSetIdentityDescriptors for members of this identity.
Public propertyPropertiesSet
Public propertyTeamFoundationIdIdentifier assigned within TFS - unique within a host. TFS artifacts are either associated with this identifier or the identity's Descriptor.
Public propertyUniqueName
Public propertyUniqueUserIdThis represents the ID to distinguish deleted accounts from one another (joe:1 vs. joe:3).
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetAttributeAttribute accessor. Will return the caller supplied default value if attribute is not present (will not throw).
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetPropertiesProperty 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 methodGetProperties(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 methodGetProperty(String)Property accessor. Will throw if not found.
Public methodGetProperty(IdentityPropertyScope, String)Property accessor. Will throw if not found.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodPrepareForWebServiceSerializationPrepareForWebServiceSerialization. .NET Xml serializer cannot handle dictionaries. Convert to array.
Public methodRemoveProperty(String)Removes property, if it exists.
Public methodRemoveProperty(IdentityPropertyScope, String)Removes property, if it exists.
Public methodSetAttributeSets an attribute. This method is obsolete, use SetProperty instead.
Public methodSetProperty(String, Object)Sets a property, will overwrite if already set.
Public methodSetProperty(IdentityPropertyScope, String, Object)Sets a property, will overwrite if already set.
Public methodToString (Overrides Object.ToString.)
Public methodTryGetProperty(String, Object)Property accessor. Will return null if not found.
Public methodTryGetProperty(IdentityPropertyScope, String, Object)Property accessor. Will return null if not found.
Top

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