Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initializes a new instance of the Target class with the given parent and name.
Espace de noms : Microsoft.SqlServer.Management.XEvent
Assembly : Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Syntaxe
'Déclaration
Public Sub New ( _
parent As Session, _
name As String _
)
'Utilisation
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
)
Paramètres
- parent
Type : Microsoft.SqlServer.Management.XEvent.Session
The parent Session object.
- name
Type : System.String
A string value that contains the fully qualified name of the Target object.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Parameter name is null. |
| XEventException | The target name is malformed or wrong. |
| NullReferenceException | The parent of the session is not set yet. |