CrmTypes.CreateCrmMoney Method
Creates an instance of a Money attribute.
Syntax
[Visual Basic .NET]
Public Shared Function CreateCrmMoney(
ByVal value As Decimal
) As CrmMoney
[C#]
public static CrmMoney CreateCrmMoney(
decimal value
);
[JScript]
public static function CreateCrmMoney(
value : Decimal
) : CrmMoney;
Parameters
value
Specifies the value of the attribute.
Return Value
Returns a CrmMoney type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the Money attribute.
CrmMoney money = CrmSdk.CrmTypes.CreateCrmMoney((decimal)10.00);
See Also