CrmTypes.CreateStatus Method
![]() |
Creates an instance of a Status attribute.
Syntax
[Visual Basic .NET]
Public Shared Function CreateStatus(
ByVal value As Integer
) As Status
[C#]
public static Status CreateStatus(
int value
);
[JScript]
public static function CreateStatus(
value : int
) : Status;
Parameters
value
Specifies the value of the attribute.
Return Value
Returns a Status type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the Status attribute.
Status status = CrmSdk.CrmTypes.CreateStatus(1);
See Also