Partager via


DefaultAttribute Constructors

Definition

Initializes a new instance of the DefaultAttribute class.

Overloads

DefaultAttribute(String)

Initializes a new instance of the DefaultAttribute class. Set the default value of a parameter.

DefaultAttribute(String, String)

Initializes a new instance of the DefaultAttribute class. Set the default value for an EntityReference.

DefaultAttribute(String)

Initializes a new instance of the DefaultAttribute class. Set the default value of a parameter.

public:
 DefaultAttribute(System::String ^ value);
public DefaultAttribute (string value);
new Microsoft.Xrm.Sdk.Workflow.DefaultAttribute : string -> Microsoft.Xrm.Sdk.Workflow.DefaultAttribute
Public Sub New (value As String)

Parameters

value
String

The default value

Remarks

If the default value is for an attribute of type lookup, a customer or an owner, then you must use the DefaultAttribute Constructor (String, String) constructor and supply the entity name.

Applies to

DefaultAttribute(String, String)

Initializes a new instance of the DefaultAttribute class. Set the default value for an EntityReference.

public:
 DefaultAttribute(System::String ^ value, System::String ^ entityName);
public DefaultAttribute (string value, string entityName);
new Microsoft.Xrm.Sdk.Workflow.DefaultAttribute : string * string -> Microsoft.Xrm.Sdk.Workflow.DefaultAttribute
Public Sub New (value As String, entityName As String)

Parameters

value
String

The value in form of a guid.

entityName
String

The name of the entity of the value.

Applies to