 | NameValueCollectionExtensionsTryGetValue Method |
Try to get values for key from me
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static bool TryGetValue(
this NameValueCollection me,
string key,
out string[] values
)
<ExtensionAttribute>
Public Shared Function TryGetValue (
me As NameValueCollection,
key As String,
<OutAttribute> ByRef values As String()
) As Boolean
public:
[ExtensionAttribute]
static bool TryGetValue(
NameValueCollection^ me,
String^ key,
[OutAttribute] array<String^>^% values
)
[<ExtensionAttribute>]
static member TryGetValue :
me : NameValueCollection *
key : string *
values : string[] byref -> bool Parameters
- me NameValueCollection
- The NameValueCollection from which the data should be retrieved
- key String
- The key to retrieve
- values String
- The values
Return Value
BooleanTrue if the value was retrieved
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NameValueCollection. 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).
See Also