你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DocumentFieldDictionary.TryGetValue(String, DocumentField) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value that is associated with the specified key.
public bool TryGetValue (string key, out Azure.AI.DocumentIntelligence.DocumentField value);
abstract member TryGetValue : string * DocumentField -> bool
override this.TryGetValue : string * DocumentField -> bool
Public Function TryGetValue (key As String, ByRef value As DocumentField) As Boolean
Parameters
- key
- String
The key to locate.
- value
- DocumentField
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value
parameter. This parameter is passed uninitialized.
Returns
true
if the object that implements the IReadOnlyDictionary<TKey,TValue> interface contains an element that has the specified key; otherwise, false
.
Exceptions
key
is null
.