Share via


IsPublicCodeSet Property

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

Gets or sets a value indicating whether the public code field of the PromoCodeDefinition is set.

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

Syntax

'Declaration
Public Property IsPublicCodeSet As Boolean
'Usage
Dim instance As PromoCodeUsageValidationException
Dim value As Boolean

value = instance.IsPublicCodeSet

instance.IsPublicCodeSet = value
public bool IsPublicCodeSet { get; set; }
public:
property bool IsPublicCodeSet {
    bool get ();
    void set (bool value);
}
public function get IsPublicCodeSet () : boolean
public function set IsPublicCodeSet (value : boolean)

Property Value

Type: System..::.Boolean
true if the public code field of the PromoCodeDefinition is set; otherwise false.

Remarks

This property, in conjunction with UsageOption property determines if the PromoCodeUsageValidationException is thrown.

Permissions

See Also

Reference

PromoCodeUsageValidationException Class

PromoCodeUsageValidationException Members

Microsoft.CommerceServer.Marketing Namespace