다음을 통해 공유


OrganizationServiceContextExtensions.WinOpportunity Method (OrganizationServiceContext, Entity, OptionSetValue)

 

Applies To: Dynamics CRM 2013

Changes the state of an opportunity to Won. (Developer Extensions)

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

Syntax

public static void WinOpportunity(
    this OrganizationServiceContext context,
    Entity opportunityClose,
    OptionSetValue status
)
public:
[ExtensionAttribute]
static void WinOpportunity(
    OrganizationServiceContext^ context,
    Entity^ opportunityClose,
    OptionSetValue^ status
)
static member WinOpportunity : 
        context:OrganizationServiceContext *
        opportunityClose:Entity *
        status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub WinOpportunity (
    context As OrganizationServiceContext,
    opportunityClose As Entity,
    status As OptionSetValue
)

Parameters

Remarks

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

See Also

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

Return to top