Condividi tramite


SqlCacheDependencyDatabase.Name Proprietà

Definizione

Ottiene o imposta il nome del database.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

Valore della proprietà

Stringa che specifica il nome utilizzato da SqlCacheDependencyDatabase per identificare il database.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Name proprietà .


// Get the current Name property value.
string nameValue = sqlCdd.Name;

// Set the Name for this configuration element.
sqlCdd.Name = "ConfigElementName";
' Get the current Name property value.
Dim nameValue As String = sqlCdd.Name

' Set the Name for this configuration element.
sqlCdd.Name = "ConfigElementName"

Commenti

La Name proprietà consente di accedere e modificare a livello di codice l'attributo name di un add elemento del databases nodo in un file di configurazione.

L'attributo name identifica il database di cui viene utilizzata la tabella per .SqlCacheDependency

Si applica a

Vedi anche