共用方式為


PipelineComponent.SetComponentProperty 方法

Assigns a value to a IDTSCustomProperty100 of the component.

此 API 不符合 CLS 標準。 

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

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Overridable Function SetComponentProperty ( _
    propertyName As String, _
    propertyValue As Object _
) As IDTSCustomProperty100
'用途
Dim instance As PipelineComponent 
Dim propertyName As String 
Dim propertyValue As Object 
Dim returnValue As IDTSCustomProperty100 

returnValue = instance.SetComponentProperty(propertyName, _
    propertyValue)
[CLSCompliantAttribute(false)]
public virtual IDTSCustomProperty100 SetComponentProperty(
    string propertyName,
    Object propertyValue
)
[CLSCompliantAttribute(false)]
public:
virtual IDTSCustomProperty100^ SetComponentProperty(
    String^ propertyName, 
    Object^ propertyValue
)
[<CLSCompliantAttribute(false)>]
abstract SetComponentProperty : 
        propertyName:string * 
        propertyValue:Object -> IDTSCustomProperty100 
[<CLSCompliantAttribute(false)>]
override SetComponentProperty : 
        propertyName:string * 
        propertyValue:Object -> IDTSCustomProperty100
public function SetComponentProperty(
    propertyName : String, 
    propertyValue : Object
) : IDTSCustomProperty100

參數

傳回值

型別:Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSCustomProperty100
The IDTSCustomProperty100 object whose property is set.

備註

This method is called when a custom property in the ComponentMetaData is set.

If not overridden, the base class assigns the value specified in the propertyValue parameter to the custom property.

請參閱

參考

PipelineComponent 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間