Partager via


ReplacesAttribute Constructors

Definition

Overloads

ReplacesAttribute(String)

Creates a new instance of the ReplacesAttribute.

ReplacesAttribute(String, Boolean)

Creates a new instance of the ReplacesAttribute.

ReplacesAttribute(String)

Creates a new instance of the ReplacesAttribute.

public:
 ReplacesAttribute(System::String ^ replaces);
public:
 ReplacesAttribute(Platform::String ^ replaces);
 ReplacesAttribute(std::wstring const & replaces);
public ReplacesAttribute (string replaces);
new Microsoft.VisualStudio.Text.Editor.ReplacesAttribute : string -> Microsoft.VisualStudio.Text.Editor.ReplacesAttribute
Public Sub New (replaces As String)

Parameters

replaces
String

The name of the replaced asset.

Exceptions

replaces is null.

replaces is an empty string.

Applies to

ReplacesAttribute(String, Boolean)

Creates a new instance of the ReplacesAttribute.

public ReplacesAttribute (string replaces, bool replacesOnlyIfCreated);
new Microsoft.VisualStudio.Text.Editor.ReplacesAttribute : string * bool -> Microsoft.VisualStudio.Text.Editor.ReplacesAttribute
Public Sub New (replaces As String, replacesOnlyIfCreated As Boolean)

Parameters

replaces
String

The name of the replaced asset.

replacesOnlyIfCreated
Boolean

Indicates that this asset should replace assets specified in replaces only if it can be created.

Exceptions

replaces is null.

replaces is an empty string.

Applies to