Partager via


From Property

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

Gets or sets the From field of the e-mail.

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

Syntax

'Declaration
Public Property From As String
'Usage
Dim instance As DirectMail
Dim value As String

value = instance.From

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

Property Value

Type: System..::.String
The From field of the e-mail. The default value is empty string, but it must be set to a non-empty value by the time of saving the DirectMail.

Exceptions

Exception Condition
ArgumentNullException

From has been set to nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

From has been set to an empty or whitespace string, or a string longer than 256 chars.

Remarks

Stores the From field of the e-mail. A value for the From field of the mailing. Usually contains the e-mail addresses of the principal author or authors of this message.

Permissions

See Also

Reference

DirectMail Class

DirectMail Members

Microsoft.CommerceServer.Marketing Namespace