JObjectExtensions.TryGetValue<T> Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function TryGetValue(Of T) ( _
container As JObject, _
parameterName As String, _
<OutAttribute> ByRef value As T _
) As Boolean
public static bool TryGetValue<T>(
this JObject container,
string parameterName,
out T value
)
[ExtensionAttribute]
public:
generic<typename T>
static bool TryGetValue(
JObject^ container,
String^ parameterName,
[OutAttribute] T% value
)
static member TryGetValue :
container:JObject *
parameterName:string *
value:'T byref -> bool
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- container
Type: JObject
- parameterName
Type: System.String
- value
Type: T%
Return Value
Type: System.Boolean
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type JObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.