CrmReference.type Field
Specifes the type (entity name) of the referenced entity.
Syntax
[Visual Basic]
Public Field type As String
[C#]
public string type;
[JScript]
public var type : String;
Remarks
This field is required when you set the attribute Value field.
Note This field may be null because not all reference types have a type. For example, attributes of type Lookup do not use the 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