Clone Method

Clones the specified type reference.

Namespace:  Microsoft.Data.OData.Metadata
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Clone ( _
    typeReference As IEdmTypeReference, _
    nullable As Boolean _
) As IEdmTypeReference
'Usage
Dim typeReference As IEdmTypeReference
Dim nullable As Boolean
Dim returnValue As IEdmTypeReference

returnValue = typeReference.Clone(nullable)
public static IEdmTypeReference Clone(
    this IEdmTypeReference typeReference,
    bool nullable
)
[ExtensionAttribute]
public:
static IEdmTypeReference^ Clone(
    IEdmTypeReference^ typeReference, 
    bool nullable
)
static member Clone : 
        typeReference:IEdmTypeReference * 
        nullable:bool -> IEdmTypeReference 
public static function Clone(
    typeReference : IEdmTypeReference, 
    nullable : boolean
) : IEdmTypeReference

Parameters

  • nullable
    Type: System..::..Boolean
    true to make the cloned type reference nullable; false to make it non-nullable.

Return Value

Type: Microsoft.Data.Edm..::..IEdmTypeReference
The cloned IEdmTypeReference instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmTypeReference. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

EdmLibraryExtensions Class

Microsoft.Data.OData.Metadata Namespace