SqlCacheDependencyDatabaseCollection.GetKey(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳位於指定索引 SqlCacheDependencyDatabaseCollection的元素鍵。
public:
System::String ^ GetKey(int index);
public string GetKey(int index);
member this.GetKey : int -> string
Public Function GetKey (index As Integer) As String
參數
- index
- Int32
要傳回之索引鍵的索引。
傳回
鍵值位於指定索引。
範例
下列程式代碼範例示範如何使用 GetKey 方法。
string thisKey = sqlCdds.GetKey(0).ToString();
Dim thisKey As String = sqlCdds.GetKey(0)
備註
若指定索引中不存在元素,則回傳空參考(Nothing in Visual Basic)。