TraceCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add() |
Creates a new Trace object using a generated unique Name and identifier, adds it to the end of the collection and returns the new Trace created. |
Add(Trace) |
Adds the specified Trace to the end of the collection. |
Add(String) |
Creates a new Trace object using the specified name, adds it to the end of the collection and returns the new Trace created. |
Add(String, String) |
Creates a new Trace object using the specified name and identifier, adds it to the end of the collection and returns the new Trace created. |
Add()
Creates a new Trace object using a generated unique Name and identifier, adds it to the end of the collection and returns the new Trace created.
public Microsoft.AnalysisServices.Tabular.Trace Add ();
override this.Add : unit -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Add () As Trace
Returns
The newly created Trace object.
Applies to
Add(Trace)
Adds the specified Trace to the end of the collection.
public int Add (Microsoft.AnalysisServices.Tabular.Trace item);
override this.Add : Microsoft.AnalysisServices.Tabular.Trace -> int
Public Function Add (item As Trace) As Integer
Parameters
Returns
The zero-based index at which the Trace has been added to the collection.
Exceptions
- The specified item is a null reference (Nothing in Visual Basic).
- The specified item already esists in the collection.
- The identifier of the specified Trace is not valid in the collection.
- The name of the specified Trace is not valid in the collection.
- The compatibility-level of the specified Trace is not valid in the collection.
Applies to
Add(String)
Creates a new Trace object using the specified name, adds it to the end of the collection and returns the new Trace created.
public Microsoft.AnalysisServices.Tabular.Trace Add (string name);
override this.Add : string -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Add (name As String) As Trace
Parameters
Returns
The newly created Trace object.
Exceptions
The specified name is not valid in the collection.
Remarks
The identifier for the new Trace object is generated based on the specified name.
Applies to
Add(String, String)
Creates a new Trace object using the specified name and identifier, adds it to the end of the collection and returns the new Trace created.
public Microsoft.AnalysisServices.Tabular.Trace Add (string name, string id);
override this.Add : string * string -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Add (name As String, id As String) As Trace
Parameters
Returns
The newly created Trace object.
Exceptions
- The specified name is not valid in the collection.
- The specified identifier is not valid in the collection.