CrmTypes.CreateCrmNumberProperty Method
![]() |
Creates an instance of a Number attribute represented as a dynamic entity.
Syntax
[Visual Basic .NET]
Public Shared Function CreateCrmNumberProperty(
ByVal name As String,
ByVal value As CrmNumber
) As CrmNumberProperty
[C#]
public static CrmNumberProperty CreateCrmNumberProperty(
string name,
CrmNumber value
);
[JScript]
public static function CreateCrmNumberProperty(
name : String,
value : CrmNumber
) : CrmNumberProperty;
Parameters
name
Specifies the name of the attribute.
value
Specifies the value of the attribute.
Return Value
Returns a CrmNumberProperty type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the CrmNumberProperty.
CrmNumberProperty numberProp = CrmSdk.CrmTypes.CreateCrmNumberProperty(
"numberofemployees", 10);
See Also