Label Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the label to use for a field in the UI.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property Label As String
'Usage
Dim instance As DisplayProperty
Dim value As String

value = instance.Label

instance.Label = value
public string Label { get; set; }
public:
property String^ Label {
    String^ get ();
    void set (String^ value);
}
public function get Label () : String
public function set Label (value : String)

Property Value

Type: System..::.String
The label to use for field in the UI. May not be greater than 255 characters. May not be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
PropertyNullValidationException

An attempt was made to set this property to nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

An attempt was made to set this property to a string that was too long or to an empty string.

Remarks

The label to use for a field in the UI. The maximum length is 255 characters. When setting this property, leading and/or trailing whitespace is removed.

This property can be ignored if the Type property is set to NoUI.

Permissions

See Also

Reference

DisplayProperty Class

DisplayProperty Members

Microsoft.CommerceServer.Marketing Namespace