SqlCacheDependencyDatabaseCollection.Get 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.
Returns the specified SqlCacheDependencyDatabaseCollection element.
Overloads
Get(Int32) |
Returns the SqlCacheDependencyDatabaseCollection element at the specified index. |
Get(String) |
Returns the SqlCacheDependencyDatabaseCollection element with the specified name. |
Get(Int32)
Returns the SqlCacheDependencyDatabaseCollection element at the specified index.
public:
System::Web::Configuration::SqlCacheDependencyDatabase ^ Get(int index);
public System.Web.Configuration.SqlCacheDependencyDatabase Get (int index);
member this.Get : int -> System.Web.Configuration.SqlCacheDependencyDatabase
Public Function Get (index As Integer) As SqlCacheDependencyDatabase
Parameters
- index
- Int32
The index of the SqlCacheDependencyDatabaseCollection element to retrieve.
Returns
The SqlCacheDependencyDatabaseCollection element at the specified index.
Examples
The following code example shows how to use the Get method.
SqlCacheDependencyDatabase dbElement1 =
sqlCdds.Get(0);
Dim dbElement1 _
As SqlCacheDependencyDatabase = _
sqlCdds.Get(0)
Remarks
A null reference (Nothing
in Visual Basic) is returned if no element exists at the specified index.
See also
Applies to
Get(String)
Returns the SqlCacheDependencyDatabaseCollection element with the specified name.
public:
System::Web::Configuration::SqlCacheDependencyDatabase ^ Get(System::String ^ name);
public System.Web.Configuration.SqlCacheDependencyDatabase Get (string name);
member this.Get : string -> System.Web.Configuration.SqlCacheDependencyDatabase
Public Function Get (name As String) As SqlCacheDependencyDatabase
Parameters
- name
- String
The name of the SqlCacheDependencyDatabaseCollection element to retrieve.
Returns
The SqlCacheDependencyDatabaseCollection element with the specified name.
Examples
The following code example shows how to use the Get method.
SqlCacheDependencyDatabase dbElement3 =
sqlCdds.Get("dataBaseElement");
Dim dbElement3 _
As SqlCacheDependencyDatabase = _
sqlCdds.Get("dataBaseElement")
Remarks
A null reference (Nothing
in Visual Basic) is returned if no element exists with the specified name.
See also
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈