Поделиться через


Метод Entity.Create

Создание внешнего типа контента.

Пространство имен:  Microsoft.SharePoint.BusinessData.Administration
Сборка:  Microsoft.SharePoint (в Microsoft.SharePoint.dll)

Синтаксис

'Декларация
Public Shared Function Create ( _
    name As String, _
    namespace As String, _
    isCached As Boolean, _
    entityVersion As Version, _
    estimatedInstanceCount As UInteger, _
    cacheUsage As CacheUsage, _
    lobSystem As LobSystem, _
    model As Model, _
    metadataCatalog As AdministrationMetadataCatalog _
) As Entity
'Применение
Dim name As String
Dim namespace As String
Dim isCached As Boolean
Dim entityVersion As Version
Dim estimatedInstanceCount As UInteger
Dim cacheUsage As CacheUsage
Dim lobSystem As LobSystem
Dim model As Model
Dim metadataCatalog As AdministrationMetadataCatalog
Dim returnValue As Entity

returnValue = Entity.Create(name, namespace, _
    isCached, entityVersion, estimatedInstanceCount, _
    cacheUsage, lobSystem, model, metadataCatalog)
public static Entity Create(
    string name,
    string namespace,
    bool isCached,
    Version entityVersion,
    uint estimatedInstanceCount,
    CacheUsage cacheUsage,
    LobSystem lobSystem,
    Model model,
    AdministrationMetadataCatalog metadataCatalog
)

Параметры

  • namespace
    Тип: System.String

    Пространство имен, содержащее внешнего типа контента.

  • isCached
    Тип: System.Boolean

    true Если кэшируется экземпляр; в противном случае — false.

  • entityVersion
    Тип: System.Version

    Версия внешнего типа контента.

  • estimatedInstanceCount
    Тип: System.UInt32

    Оценка количества экземпляров.

Возвращаемое значение

Тип: Microsoft.SharePoint.BusinessData.Administration.Entity
Внешний тип контента, созданный.

Примеры

Code Snippet: Create an External Content Type Using the Administration Object Model

См. также

Справочные материалы

Entity класс

Элементы Entity

Пространство имен Microsoft.SharePoint.BusinessData.Administration