다음을 통해 공유


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

참고 항목

참조

ServerConnection 클래스

Microsoft.SqlServer.Management.Common 네임스페이스