TestElement Constructors
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
TestElement() |
Initializes a new instance of the TestElement class. |
TestElement(TestElement) |
Initializes a new instance of the TestElement class by using the provided copy of a test element. |
TestElement(SerializationInfo, StreamingContext) |
Initializes a new instance of the TestElement class from serialized data. |
TestElement(String, String) |
Initializes a new instance of the TestElement class by using the provided name and description. |
TestElement(TestId, String, String) |
Initializes a new instance of the TestElement class. |
TestElement(String, String, String) |
Initializes a new instance of the TestElement class by using the provided name, description, and storage. |
TestElement(TestId, String, String, String) |
Initializes a new instance of the TestElement class. |
TestElement()
Initializes a new instance of the TestElement class.
protected:
TestElement();
protected TestElement ();
Protected Sub New ()
Applies to
TestElement(TestElement)
Initializes a new instance of the TestElement class by using the provided copy of a test element.
protected:
TestElement(Microsoft::VisualStudio::TestTools::Common::TestElement ^ copy);
protected TestElement (Microsoft.VisualStudio.TestTools.Common.TestElement copy);
new Microsoft.VisualStudio.TestTools.Common.TestElement : Microsoft.VisualStudio.TestTools.Common.TestElement -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (copy As TestElement)
Parameters
- copy
- TestElement
A copy of a TestElement object.
Applies to
TestElement(SerializationInfo, StreamingContext)
Initializes a new instance of the TestElement class from serialized data.
protected:
TestElement(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestElement (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestElement : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object.
- context
- StreamingContext
A StreamingContext object.
Applies to
TestElement(String, String)
Initializes a new instance of the TestElement class by using the provided name and description.
protected:
TestElement(System::String ^ name, System::String ^ description);
protected TestElement (string name, string description);
new Microsoft.VisualStudio.TestTools.Common.TestElement : string * string -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (name As String, description As String)
Parameters
- name
- String
The name of the test element.
- description
- String
The description of the test element.
Applies to
TestElement(TestId, String, String)
Initializes a new instance of the TestElement class.
protected:
TestElement(Microsoft::VisualStudio::TestTools::Common::TestId ^ id, System::String ^ name, System::String ^ description);
protected TestElement (Microsoft.VisualStudio.TestTools.Common.TestId id, string name, string description);
new Microsoft.VisualStudio.TestTools.Common.TestElement : Microsoft.VisualStudio.TestTools.Common.TestId * string * string -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (id As TestId, name As String, description As String)
Parameters
- name
- String
The name of this test element.
- description
- String
The description of this test element.
Applies to
TestElement(String, String, String)
Initializes a new instance of the TestElement class by using the provided name, description, and storage.
protected:
TestElement(System::String ^ name, System::String ^ description, System::String ^ storage);
protected TestElement (string name, string description, string storage);
new Microsoft.VisualStudio.TestTools.Common.TestElement : string * string * string -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (name As String, description As String, storage As String)
Parameters
- name
- String
The name of the test element.
- description
- String
The description of the test element.
- storage
- String
The relative path of the folder where associated files are stored on the server.
Applies to
TestElement(TestId, String, String, String)
Initializes a new instance of the TestElement class.
protected:
TestElement(Microsoft::VisualStudio::TestTools::Common::TestId ^ id, System::String ^ name, System::String ^ description, System::String ^ storage);
protected TestElement (Microsoft.VisualStudio.TestTools.Common.TestId id, string name, string description, string storage);
new Microsoft.VisualStudio.TestTools.Common.TestElement : Microsoft.VisualStudio.TestTools.Common.TestId * string * string * string -> Microsoft.VisualStudio.TestTools.Common.TestElement
Protected Sub New (id As TestId, name As String, description As String, storage As String)
Parameters
- name
- String
The name of this test element.
- description
- String
The description of this test element.
- storage
- String
The relative path of the folder where associated files are stored on the server.