DictionaryEditor.TryGetValue

DictionaryEditor.TryGetValue 方法

用于访问简单数据类型,如字符串、名称、布尔值、数字。对于其他类型返回 null。

public bool TryGetValue(string key, out ICosPdfPrimitive value)
参数类型描述
keyString键值
valueICosPdfPrimitive&返回 ICosPdfPrimitive 对于键或 null。

返回值

如果 ICosPdfPrimitive 类似于字符串、名称、布尔值、数字,则返回 true。对于所有其他类型返回 false。

另请参阅