Partager via


ReplacesAttribute Constructor

Initializes a new instance of the ReplacesAttribute.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public Sub New ( _
    replaces As String _
)
public ReplacesAttribute(
    string replaces
)
public:
ReplacesAttribute(
    String^ replaces
)
new : 
        replaces:string -> ReplacesAttribute
public function ReplacesAttribute(
    replaces : String
)

Parameters

  • replaces
    Type: String

    The name of the replaced asset.

Exceptions

Exception Condition
ArgumentNullException

replaces is nulla null reference (Nothing in Visual Basic).

ArgumentException

Replaces is an empty string.

.NET Framework Security

See Also

Reference

ReplacesAttribute Class

Microsoft.VisualStudio.Text.Editor Namespace