ServerConnection.UserProfile 属性
获取与引用的连接关联的用户配置文件。
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public ReadOnly Property UserProfile As ServerUserProfiles
Get
用法
Dim instance As ServerConnection
Dim value As ServerUserProfiles
value = instance.UserProfile
public ServerUserProfiles UserProfile { get; }
public:
property ServerUserProfiles UserProfile {
ServerUserProfiles get ();
}
member UserProfile : ServerUserProfiles
function get UserProfile () : ServerUserProfiles
属性值
类型:Microsoft.SqlServer.Management.Common.ServerUserProfiles
一个 ServerUserProfiles 对象值,该值指定与引用的连接关联的用户配置文件。
示例
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.UserProfile.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.UserProfile