Share via


OrganizationServiceContextExtensions.SetState Method (OrganizationServiceContext, EntityReference, OptionSetValue, OptionSetValue)

 

Applies To: Dynamics CRM 2013

Sets the state of a record. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static void SetState(
    this OrganizationServiceContext context,
    EntityReference entityMoniker,
    OptionSetValue state,
    OptionSetValue status
)
public:
[ExtensionAttribute]
static void SetState(
    OrganizationServiceContext^ context,
    EntityReference^ entityMoniker,
    OptionSetValue^ state,
    OptionSetValue^ status
)
static member SetState : 
        context:OrganizationServiceContext *
        entityMoniker:EntityReference *
        state:OptionSetValue *
        status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub SetState (
    context As OrganizationServiceContext,
    entityMoniker As EntityReference,
    state As OptionSetValue,
    status As OptionSetValue
)

Parameters

Remarks

This is a method wrapper for the SetStateRequest and SetStateResponse classes. See the documentation in the Request class for more information about this message.

See Also

SetState Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace

Return to top