Share via


CrmTypes.CreateCrmBooleanProperty Method

banner art

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

Syntax

[Visual Basic .NET]
Public Shared Function CreateCrmBooleanProperty(
  ByVal name As String,
  ByVal value As CrmBoolean
) As CrmBooleanProperty

[C#]
public static CrmBooleanProperty CreateCrmBooleanProperty(
  string  name,
  CrmBoolean  value
);

[JScript]
public static function CreateCrmBooleanProperty(
  name : String,
  value : CrmBoolean
) : CrmBooleanProperty;

Parameters

name

Specifies the name of the attribute.

value

Specifies the value of the attribute.

Return Value

Returns a CrmBooleanProperty type.

Example

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

// Create the CrmBooleanProperty.
CrmBooleanProperty booleanProp 
    = CrmSdk.CrmTypes.CreateCrmBooleanProperty("isrevenuesystemcalculated",
      true);

See Also

© 2007 Microsoft Corporation. All rights reserved.