Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringThe namespace of the external content type to get.
name
Type: System.StringThe 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