Конструктор Target (Session, String)

Initializes a new instance of the Target class with the given parent and name.

Пространство имен:  Microsoft.SqlServer.Management.XEvent
Сборка:  Microsoft.SqlServer.Management.XEvent (в Microsoft.SqlServer.Management.XEvent.dll)

Синтаксис

'Декларация
Public Sub New ( _
    parent As Session, _
    name As String _
)
'Применение
Dim parent As Session 
Dim name As String 

Dim instance As New Target(parent, _
    name)
public Target(
    Session parent,
    string name
)
public:
Target(
    Session^ parent, 
    String^ name
)
new : 
        parent:Session * 
        name:string -> Target
public function Target(
    parent : Session, 
    name : String
)

Параметры

  • name
    Тип: System.String
    A string value that contains the fully qualified name of the Target object.

Исключения

Исключение Условие
ArgumentNullException

Parameter name is null.

XEventException

The target name is malformed or wrong.

NullReferenceException

The parent of the session is not set yet.

См. также

Справочник

Target Класс

Перегрузка Target

Пространство имен Microsoft.SqlServer.Management.XEvent