IndexAction.Create Method (T)

Creates a new instance of the IndexAction class.

Namespace: Microsoft.Azure.Search.Models
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)

Usage

'Usage
Dim document As T
Dim returnValue As IndexAction(Of T)

returnValue = IndexAction.Create(document)

Syntax

'Declaration
Public Shared Function Create(Of T) ( _
    document As T _
) As IndexAction(Of T)
public static IndexAction<T> Create<T> (
    T document
)
public:
generic<typename T>
static IndexAction<T>^ Create (
    T document
)

GenericParameters

  • T
    The CLR type that maps to the index schema. Instances of this type can be stored as documents in the index.

Parameters

  • document
    The document on which the action will be performed.

Return Value

A new IndexAction.

Remarks

You can use this method as a convenience if you don't want to explicitly specify your model class as a type parameter.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IndexAction Class
IndexAction Members
Microsoft.Azure.Search.Models Namespace