CrmTypes.CreateCrmBoolean Method
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