SqlFunctions.UserName Method

Definition

Overloads

UserName()

Returns a database user name corresponding to a specified identification number.

UserName(Nullable<Int32>)

Returns a database user name corresponding to a specified identification number.

UserName()

Returns a database user name corresponding to a specified identification number.

[System.Data.Entity.DbFunction("SqlServer", "USER_NAME")]
public static string UserName ();
static member UserName : unit -> string
Public Shared Function UserName () As String

Returns

The user name.

Attributes

Applies to

UserName(Nullable<Int32>)

Returns a database user name corresponding to a specified identification number.

[System.Data.Entity.DbFunction("SqlServer", "USER_NAME")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static string UserName (Nullable<int> arg);
static member UserName : Nullable<int> -> string
Public Shared Function UserName (arg As Nullable(Of Integer)) As String

Parameters

arg
Nullable<Int32>

A user ID.

Returns

The user name.

Attributes

Applies to