SqlCacheDependency.GetUniqueID Method

Retrieves a unique identifier for a SqlCacheDependency object.

Namespace: System.Web.Caching
Assembly: System.Web (in system.web.dll)

public:
virtual String^ GetUniqueID () override
public String GetUniqueID ()
public override function GetUniqueID () : String
Not applicable.

Return Value

The unique identifier for the SqlCacheDependency object, or a null reference (Nothing in Visual Basic) if no identifier can be generated.

The SqlCacheDependency method returns an identifier used to uniquely track SqlCacheDependency objects associated with an item or application. The unique identifier generated when using table-based notifications is partially dependent on the change identifier generated by the database.

When using SQL Server 2005-based query notifications, the unique identifier is a null reference (Nothing in Visual Basic) because SQL Server 2005 does not support returning unique identifiers for individual query notifications.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: