共用方式為


TeamFoundationIdentity.GetAttribute Method

Attribute accessor. Will return the caller supplied default value if attribute is not present (will not throw).

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

Syntax

'Declaration
Public Function GetAttribute ( _
    name As String, _
    defaultValue As String _
) As String
public string GetAttribute(
    string name,
    string defaultValue
)
public:
String^ GetAttribute(
    String^ name, 
    String^ defaultValue
)
member GetAttribute : 
        name:string * 
        defaultValue:string -> string
public function GetAttribute(
    name : String, 
    defaultValue : String
) : String

Parameters

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

TeamFoundationIdentity Class

Microsoft.TeamFoundation.Server.Core Namespace