DefaultUrl Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the default URL for this customer.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Property DefaultUrl As String
'Usage
Dim instance As Customer
Dim value As String
value = instance.DefaultUrl
instance.DefaultUrl = value
public string DefaultUrl { get; set; }
public:
property String^ DefaultUrl {
String^ get ();
void set (String^ value);
}
public function get DefaultUrl () : String
public function set DefaultUrl (value : String)
Property Value
Type: System..::.String
The default URL of the customer.
Exceptions
Exception | Condition |
---|---|
StringLengthValidationException | An attempt was made to set DefaultUrl to a string that was longer than 512 characters. |
Remarks
Stores the URL associated with the Customer object. This is used for the default click-URL for an ad or discount display. DefaultUrl contains free-form text up to 512 characters in length. When setting property, leading and trailing whitespace is removed. Setting the value to nullNothingnullptra null reference (Nothing in Visual Basic) is equivalent to setting it to string.Empty.
Examples
cu.DefaultUrl = "https://example.microsoft.com";
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.