Share via


CrmReference.Value Field

banner art

Specifies the value of the attribute.

Syntax

[Visual Basic]
Public Field Value As Integer

[C#]
public int Value;

[JScript]
public var Value : int;

Remarks

This field is required when you set an attribute value. When you set this field, you must also set the type field..

Example

The following example shows how to set a CrmReference attribute value.

CrmReference ref = new CrmReference();
ref.type = EntityName.systemuser.ToString();
ref.Value = user.UserId;

See Also

© 2007 Microsoft Corporation. All rights reserved.