CrmTypes.CreateStatusProperty Method
Creates an instance of a Status attribute represented as a dynamic entity.
Syntax
[Visual Basic .NET]
Public Shared Function CreateStatusProperty(
ByVal name As String,
ByVal value As Status
) As StatusProperty
[C#]
public static StatusProperty CreateStatusProperty(
string name,
Status value
);
[JScript]
public static function CreateStatusProperty(
name : String,
value : Status
) : StatusProperty;
Parameters
name
Specifies the name of the attribute.
value
Specifies the value of the attribute.
Return Value
Returns a StatusProperty type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials
= System.Net.CredentialCache.DefaultCredentials;
// Create the StatusProperty.
StatusProperty statusProp
= CrmSdk.CrmTypes.CreateStatusProperty(
"statuscode",
1);
See Also