Share via


CrmTypes.CreateCrmBoolean Method

banner art

Creates an instance of a Boolean attribute.

Syntax

[Visual Basic .NET]
Public Shared Function CreateCrmBoolean(
  ByVal value As Boolean
) As CrmBoolean

[C#]
public static CrmBoolean CreateCrmBoolean(
  bool  value
);

[JScript]
public static function CreateCrmBoolean(
  value : Boolean
) : CrmBoolean;

Parameters

value

Specifies the value of the attribute.

Return Value

Returns a CrmBoolean type.

Example

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

// Create the Boolean attribute.
CrmBoolean boolean = CrmSdk.CrmTypes.CreateCrmBoolean(true);

See Also

© 2007 Microsoft Corporation. All rights reserved.