Compartir a través de


Session.Name Propiedad

Gets the name of the Session object.

Espacio de nombres:  Microsoft.SqlServer.Management.XEvent
Ensamblado:  Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Required Or SfcPropertyFlags.ReadOnlyAfterCreation)> _
<SfcKeyAttribute()> _
Public Property Name As String 
    Get 
    Set
'Uso
Dim instance As Session 
Dim value As String 

value = instance.Name

instance.Name = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)]
[SfcKeyAttribute()]
public string Name { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Required|SfcPropertyFlags::ReadOnlyAfterCreation)]
[SfcKeyAttribute()]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)>]
[<SfcKeyAttribute()>]
member Name : string with get, set
function get Name () : String 
function set Name (value : String)

Valor de la propiedad

Tipo: System.String
The String which contains the name of the Session

Excepciones

Excepción Condición
XEventException

Set name for existing session or set name to null/empty string.

Vea también

Referencia

Session Clase

Espacio de nombres Microsoft.SqlServer.Management.XEvent