共用方式為


PipelineComponent.InsertExternalMetadataColumnAt 方法

Inserts a new external metadata column into the collection of external metadata columns at the specified index.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.PipelineHost (在 Microsoft.SqlServer.PipelineHost.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Overridable Function InsertExternalMetadataColumnAt ( _
    iID As Integer, _
    iExternalMetadataColumnIndex As Integer, _
    strName As String, _
    strDescription As String _
) As IDTSExternalMetadataColumn100
'用途
Dim instance As PipelineComponent 
Dim iID As Integer 
Dim iExternalMetadataColumnIndex As Integer 
Dim strName As String 
Dim strDescription As String 
Dim returnValue As IDTSExternalMetadataColumn100 

returnValue = instance.InsertExternalMetadataColumnAt(iID, _
    iExternalMetadataColumnIndex, strName, _
    strDescription)
[CLSCompliantAttribute(false)]
public virtual IDTSExternalMetadataColumn100 InsertExternalMetadataColumnAt(
    int iID,
    int iExternalMetadataColumnIndex,
    string strName,
    string strDescription
)
[CLSCompliantAttribute(false)]
public:
virtual IDTSExternalMetadataColumn100^ InsertExternalMetadataColumnAt(
    int iID, 
    int iExternalMetadataColumnIndex, 
    String^ strName, 
    String^ strDescription
)
[<CLSCompliantAttribute(false)>]
abstract InsertExternalMetadataColumnAt : 
        iID:int * 
        iExternalMetadataColumnIndex:int * 
        strName:string * 
        strDescription:string -> IDTSExternalMetadataColumn100 
[<CLSCompliantAttribute(false)>]
override InsertExternalMetadataColumnAt : 
        iID:int * 
        iExternalMetadataColumnIndex:int * 
        strName:string * 
        strDescription:string -> IDTSExternalMetadataColumn100
public function InsertExternalMetadataColumnAt(
    iID : int, 
    iExternalMetadataColumnIndex : int, 
    strName : String, 
    strDescription : String
) : IDTSExternalMetadataColumn100

參數

  • iExternalMetadataColumnIndex
    型別:System.Int32
    The index at which the new external metadata column should be inserted into the collection.
  • strName
    型別:System.String
    The Name of the new external metadata column.
  • strDescription
    型別:System.String
    The Description of the new external metadata column.

傳回值

型別:Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSExternalMetadataColumn100
The newly created IDTSExternalMetadataColumn100.

備註

For more information about working with external metadata columns, see 實作外部中繼資料.

請參閱

參考

PipelineComponent 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間