CrmReference.Value Field
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