DynamicDataAttribute Class  
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.
Attribute to define dynamic data for a test method.
public ref class DynamicDataAttribute sealed : Attribute, Microsoft::VisualStudio::TestTools::UnitTesting::ITestDataSource[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceUnfoldingCapability
    interface ITestDataSourceIgnoreCapability[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceUnfoldingCapability[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)>]
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
    interface ITestDataSourceIgnoreCapabilityPublic NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSourcePublic NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceIgnoreCapability, ITestDataSourceUnfoldingCapabilityPublic NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceUnfoldingCapabilityPublic NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceIgnoreCapability- Inheritance
- 
				DynamicDataAttribute
- Attributes
- Implements
Constructors
| DynamicDataAttribute(String, DynamicDataSourceType) | Initializes a new instance of the DynamicDataAttribute class. | 
| DynamicDataAttribute(String, Object[]) | Initializes a new instance of the DynamicDataAttribute class. | 
| DynamicDataAttribute(String, Type, DynamicDataSourceType) | Initializes a new instance of the DynamicDataAttribute class when the test data is present in a class different from test method's class. | 
| DynamicDataAttribute(String, Type, Object[]) | Initializes a new instance of the DynamicDataAttribute class when the test data is present in a class different from test method's class. | 
| DynamicDataAttribute(String, Type) | Initializes a new instance of the DynamicDataAttribute class when the test data is present in a class different from test method's class. | 
| DynamicDataAttribute(String) | Initializes a new instance of the DynamicDataAttribute class. | 
Properties
| DynamicDataDisplayName | Gets or sets the name of method used to customize the display name in test results. | 
| DynamicDataDisplayNameDeclaringType | Gets or sets the declaring type used to customize the display name in test results. | 
| IgnoreMessage | Gets or sets a reason to ignore this dynamic data source. Setting the property to non-null value will ignore the dynamic data source. | 
| UnfoldingStrategy | Gets the strategy for unfolding parameterized tests. | 
Methods
| GetData(MethodInfo) | Gets the test data from custom test data source. | 
| GetDisplayName(MethodInfo, Object[]) | Gets the display name corresponding to test data row for displaying in TestResults. |