ExecutionStrategyKey.ServerName 属性

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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)

属性值

类型:System.String

请参阅

参考

ExecutionStrategyKey 类

System.Data.Entity.Infrastructure 命名空间