Session.AddTarget 메서드 (String)
Adds a new Target object to the session.
네임스페이스: Microsoft.SqlServer.Management.XEvent
어셈블리: Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)
구문
‘선언
Public Function AddTarget ( _
targetName As String _
) As Target
‘사용 방법
Dim instance As Session
Dim targetName As String
Dim returnValue As Target
returnValue = instance.AddTarget(targetName)
public Target AddTarget(
string targetName
)
public:
Target^ AddTarget(
String^ targetName
)
member AddTarget :
targetName:string -> Target
public function AddTarget(
targetName : String
) : Target
매개 변수
- targetName
유형: System.String
A string value that contains the fully qualified name of the target.
반환 값
유형: Microsoft.SqlServer.Management.XEvent.Target
The newly created Target object.
예외
예외 | 조건 |
---|---|
ArgumentNullException | Parameter targetName is null |
XEventException | Target name is malformed or wrong. |