共用方式為


AdministrationMetadataCatalog.GetEntity Method

Gets the active external content type using the specified name and namespace.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetEntity ( _
    namespace As String, _
    name As String _
) As Entity
'Usage
Dim instance As AdministrationMetadataCatalog
Dim namespace As String
Dim name As String
Dim returnValue As Entity

returnValue = instance.GetEntity(namespace, _
    name)
public Entity GetEntity(
    string namespace,
    string name
)

Parameters

  • namespace
    Type: System.String

    The namespace of the external content type to get.

  • name
    Type: System.String

    The name of the external content type to get.

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.Entity
The active external content type.

Exceptions

Exception Condition
ArgumentNullException

The wildcardedNamespace or wildcardedName parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The wildcardedNamespace or wildcardedName contains more than 255 characters.

MetadataObjectNotFoundException

The specified external content type does not exist in the Metadata Store.

Examples

Code Snippet: Add an Access Control Entry to a MetadataObject Using the Administration Object Model

See Also

Reference

AdministrationMetadataCatalog Class

AdministrationMetadataCatalog Members

Microsoft.SharePoint.BusinessData.Administration Namespace