CrmTypes.CreateEntityNameReference Method
Creates an instance of an entity name reference attribute.
Syntax
[Visual Basic .NET]
Public Shared Function CreateEntityNameReference(
ByVal value As String
) As EntityNameReference
[C#]
public static EntityNameReference CreateEntityNameReference(
string value
);
[JScript]
public static function CreateEntityNameReference(
value : String
) : EntityNameReference;
Parameters
value
Specifies the value of the attribute.
Return Value
Returns an EntityNameReference type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the EntityNameReference.
EntityNameReference reference = CrmSdk.CrmTypes.CreateEntityNameReference(EntityName.systemuser.ToString());
See Also