SqlCacheDependencyDatabaseCollection.Get Method (String)

 

Returns the SqlCacheDependencyDatabaseCollection element with the specified name.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

Public Function Get (
	name As String
) As SqlCacheDependencyDatabase

Parameters

name
Type: System.String

The name of the SqlCacheDependencyDatabaseCollection element to retrieve.

A null reference (Nothing in Visual Basic) is returned if no element exists with the specified name.

The following code example shows how to use the Get method.

Dim dbElement3 _
As SqlCacheDependencyDatabase = _
  sqlCdds.Get("dataBaseElement")

.NET Framework
Available since 2.0
Return to top
Show: