ServerConnection.UserProfile 属性
Gets the user profile associated with the referenced connection.
命名空间: 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
A ServerUserProfiles object value that specifies the user profile associated with the referenced connection.
示例
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.UserProfile.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.UserProfile