Compartilhar via


EntityKey.Create Method (array<Object[])

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Creates a key using the specified key values.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    ParamArray keyValues As Object() _
) As EntityKey
'Usage
Dim keyValues As Object()
Dim returnValue As EntityKey

returnValue = EntityKey.Create(keyValues)
public static EntityKey Create(
    params Object[] keyValues
)
public:
static EntityKey^ Create(
    ... array<Object^>^ keyValues
)
static member Create : 
        keyValues:Object[] -> EntityKey 
public static function Create(
    ... keyValues : Object[]
) : EntityKey

Parameters

Return Value

Type: System.ServiceModel.DomainServices.Client.EntityKey
A key based on the specified key values.

Exceptions

Exception Condition
[ArgumentNullException]

keyValues is nulla null reference (Nothing in Visual Basic).

[ArgumentException]

keyValues does not have members.

See Also

Reference

EntityKey Class

Create Overload

System.ServiceModel.DomainServices.Client Namespace