ServerConnection.UserProfile Propiedad
Gets the user profile associated with the referenced connection.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public ReadOnly Property UserProfile As ServerUserProfiles
Get
'Uso
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
Valor de la propiedad
Tipo: Microsoft.SqlServer.Management.Common.ServerUserProfiles
A ServerUserProfiles object value that specifies the user profile associated with the referenced connection.
Ejemplos
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.UserProfile.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.UserProfile