EntityKey.Create<T1, T2> Method (T1, T2)

[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(Of T1, T2) ( _
    v1 As T1, _
    v2 As T2 _
) As EntityKey
'Usage
Dim v1 As T1
Dim v2 As T2
Dim returnValue As EntityKey

returnValue = EntityKey.Create(v1, v2)
public static EntityKey Create<T1, T2>(
    T1 v1,
    T2 v2
)
public:
generic<typename T1, typename T2>
static EntityKey^ Create(
    T1 v1, 
    T2 v2
)
static member Create : 
        v1:'T1 * 
        v2:'T2 -> EntityKey 
JScript does not support generic types and methods.

Type Parameters

  • T1
    First key value type.
  • T2
    Second key value type.

Parameters

  • v1
    Type: T1
    First key value.
  • v2
    Type: T2
    Second key value.

Return Value

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

See Also

Reference

EntityKey Class

Create Overload

System.ServiceModel.DomainServices.Client Namespace