SqlCacheDependencyDatabase.Name Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur nama 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
Nilai Properti
String yang menentukan nama yang digunakan oleh SqlCacheDependencyDatabase untuk mengidentifikasi database.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan Name properti .
// 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"
Keterangan
Properti Name ini memungkinkan Anda untuk secara terprogram mengakses dan memodifikasi name atribut add elemen databases simpul dalam file konfigurasi.
Atribut name mengidentifikasi database yang tabelnya digunakan untuk SqlCacheDependency.