Parameter.CreateRootTypeDescriptor method
Creates a top-level (root) TypeDescriptor object for this parameter.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function CreateRootTypeDescriptor ( _
name As String, _
isCached As Boolean, _
typeName As String, _
lobName As String, _
identifierReference As IdentifierReference, _
filterDescriptor As FilterDescriptor, _
flags As TypeDescriptorFlags, _
associationReference As AssociationReference, _
metadataCatalog As AdministrationMetadataCatalog _
) As TypeDescriptor
'Usage
Dim instance As Parameter
Dim name As String
Dim isCached As Boolean
Dim typeName As String
Dim lobName As String
Dim identifierReference As IdentifierReference
Dim filterDescriptor As FilterDescriptor
Dim flags As TypeDescriptorFlags
Dim associationReference As AssociationReference
Dim metadataCatalog As AdministrationMetadataCatalog
Dim returnValue As TypeDescriptor
returnValue = instance.CreateRootTypeDescriptor(name, _
isCached, typeName, lobName, identifierReference, _
filterDescriptor, flags, associationReference, _
metadataCatalog)
public TypeDescriptor CreateRootTypeDescriptor(
string name,
bool isCached,
string typeName,
string lobName,
IdentifierReference identifierReference,
FilterDescriptor filterDescriptor,
TypeDescriptorFlags flags,
AssociationReference associationReference,
AdministrationMetadataCatalog metadataCatalog
)
Parameters
name
Type: System.StringThe name of the root TypeDescriptor object.
isCached
Type: System.BooleanA Boolean value indicating whether the TypeDescriptor object should be cached for run-time use.
typeName
Type: System.StringThe Microsoft .NET Framework Type name.
lobName
Type: System.StringThe external system name.
identifierReference
Type: Microsoft.SharePoint.BusinessData.Administration.IdentifierReferenceThe identifier reference, if this parameter or column represents an identifier.
filterDescriptor
Type: Microsoft.SharePoint.BusinessData.Administration.FilterDescriptorThe FilterDescriptor object, if this parameter or column represents a filter.
flags
Type: Microsoft.BusinessData.MetadataModel.TypeDescriptorFlagsThe type descriptor flags used with this parameter.
associationReference
Type: Microsoft.SharePoint.BusinessData.Administration.AssociationReferenceThe association reference of this parameter.
metadataCatalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe Metadata Store name.
Return value
Type: Microsoft.SharePoint.BusinessData.Administration.TypeDescriptor
A new TypeDescriptor object.
Examples
Code Snippet: Create an External Content Type Using the Administration Object Model