ExecutionStrategyKey.ServerName 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
要與連接字串中的伺服器名稱進行比對的字串。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Property ServerName As String
Get
Private Set
'用途
Dim instance As ExecutionStrategyKey
Dim value As String
value = instance.ServerName
public string ServerName { get; private set; }
public:
property String^ ServerName {
String^ get ();
private: void set (String^ value);
}
member ServerName : string with get, private set
function get ServerName () : String
private function set ServerName (value : String)