Condividi tramite


Proprietà ServerConnection.UserProfile

Gets the user profile associated with the referenced connection.

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property UserProfile As ServerUserProfiles 
    Get
'Utilizzo
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

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Common.ServerUserProfiles
A ServerUserProfiles object value that specifies the user profile associated with the referenced connection.

Esempi

C#

ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.UserProfile.ToString());

PowerShell

$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.UserProfile

Vedere anche

Riferimento

ServerConnection Classe

Spazio dei nomi Microsoft.SqlServer.Management.Common