共用方式為


PipelineComponent.SetComponentProperty Method

Assigns a value to a IDTSCustomProperty90 of the component. This method is not CLS-compliant.

命名空間: Microsoft.SqlServer.Dts.Pipeline
組件: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Overridable Function SetComponentProperty ( _
    propertyName As String, _
    propertyValue As Object _
) As IDTSCustomProperty90
[CLSCompliantAttribute(false)] 
public virtual IDTSCustomProperty90 SetComponentProperty (
    string propertyName,
    Object propertyValue
)
[CLSCompliantAttribute(false)] 
public:
virtual IDTSCustomProperty90^ SetComponentProperty (
    String^ propertyName, 
    Object^ propertyValue
)
/** @attribute CLSCompliantAttribute(false) */ 
public IDTSCustomProperty90 SetComponentProperty (
    String propertyName, 
    Object propertyValue
)
CLSCompliantAttribute(false) 
public function SetComponentProperty (
    propertyName : String, 
    propertyValue : Object
) : IDTSCustomProperty90

參數

  • propertyValue
    The object stored in the Value property of the IDTSCustomProperty90 object.

傳回值

The IDTSCustomProperty90 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.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

PipelineComponent Class
PipelineComponent Members
Microsoft.SqlServer.Dts.Pipeline Namespace