Share via


CrmTypes.CreateCrmDecimalProperty Method

banner art

Creates an instance of a Decimal attribute represented as a dynamic entity.

Syntax

[Visual Basic .NET]
Public Shared Function CreateCrmDecimalProperty(
  ByVal name As String,
  ByVal value As CrmDecimal
) As CrmDecimalProperty

[C#]
public static CrmDecimalProperty CreateCrmDecimalProperty(
  string  name,
  CrmDecimal  value
);

[JScript]
public static function CreateCrmDecimalProperty(
  name : String,
  value : CrmDecimal
) : CrmDecimalProperty;

Parameters

name

Specifies the name of the attribute.

value

Specifies the value of the attribute.

Return Value

Returns a CrmDecimalProperty type.

Example

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the CrmDecimalProperty.
CrmDecimalProperty decProp = CrmSdk.CrmTypes.CreateCrmDecimalProperty(
                                   "quantitybackordered",
                                   (decimal)10.1);

See Also

© 2007 Microsoft Corporation. All rights reserved.