Share via


DataCollectorFriendlyNameAttribute Constructor (String, Boolean)

Initializes an instance of the DataCollectorFriendlyNameAttribute class with the friendly name and indicates whether the string is a resource name.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
Public Sub New ( _
    friendlyName As String, _
    isResourceName As Boolean _
)
public DataCollectorFriendlyNameAttribute(
    string friendlyName,
    bool isResourceName
)
public:
DataCollectorFriendlyNameAttribute(
    String^ friendlyName, 
    bool isResourceName
)
new : 
        friendlyName:string * 
        isResourceName:bool -> DataCollectorFriendlyNameAttribute
public function DataCollectorFriendlyNameAttribute(
    friendlyName : String, 
    isResourceName : boolean
)

Parameters

  • friendlyName
    Type: String

    Friendly name of the diagnostic data adapter or resource name that contains the friendly name.

  • isResourceName
    Type: Boolean

    true indicates that the string that is provided for the friendly name is a resource name. false indicates that the string that is provided should be used directly as the friendly name for the adapter.

.NET Framework Security

See Also

Reference

DataCollectorFriendlyNameAttribute Class

DataCollectorFriendlyNameAttribute Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

DataCollectorFriendlyNameAttribute

Other Resources

How to: Create a Diagnostic Data Adapter