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 命名空间