ScriptCache.TryGetMetadata 方法
返回一个值,该值指示检索指定的元数据是否成功。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Overridable Function TryGetMetadata ( _
cacheIdentifier As String, _
<OutAttribute> ByRef metadata As IDictionary(Of String, String) _
) As Boolean
public virtual bool TryGetMetadata(
string cacheIdentifier,
out IDictionary<string, string> metadata
)
public:
virtual bool TryGetMetadata(
String^ cacheIdentifier,
[OutAttribute] IDictionary<String^, String^>^% metadata
)
abstract TryGetMetadata :
cacheIdentifier:string *
metadata:IDictionary<string, string> byref -> bool
override TryGetMetadata :
cacheIdentifier:string *
metadata:IDictionary<string, string> byref -> bool
public function TryGetMetadata(
cacheIdentifier : String,
metadata : IDictionary<String, String>
) : boolean
参数
- cacheIdentifier
类型:System.String
缓存标识符。
- metadata
类型:System.Collections.Generic.IDictionary<String, String>%
(输出)检索的元数据。
返回值
类型:System.Boolean
如果成功检索了元数据,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。