Share via


CrmTypes.CreateCrmMoneyProperty Method

banner art

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

Syntax

[Visual Basic .NET]
Public Shared Function CreateCrmMoneyProperty(
  ByVal name As String,
  ByVal value As CrmMoney
) As CrmMoneyProperty

[C#]
public static CrmMoneyProperty CreateCrmMoneyProperty(
  string  name,
  CrmMoney  value
);

[JScript]
public static function CreateCrmMoneyProperty(
  name : String,
  value : CrmMoney
) : CrmMoneyProperty;

Parameters

name

Specifies the name of the attribute.

value

Specifies the value of the attribute.

Return Value

Returns a CrmMoneyProperty type.

Example

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

// Create the CrmMoneyProperty.
CrmMoneyProperty moneyProp = CrmSdk.CrmTypes.CreateCrmMoneyProperty(
                           "actualvalue",
                           (decimal)10.00);

See Also

© 2007 Microsoft Corporation. All rights reserved.