Méthode PipelineComponent.SetComponentProperty
Assigns a value to a IDTSCustomProperty100 of the component.
Cette API n'est pas conforme CLS.
Espace de noms : Microsoft.SqlServer.Dts.Pipeline
Assembly : Microsoft.SqlServer.PipelineHost (en Microsoft.SqlServer.PipelineHost.dll)
Syntaxe
'Déclaration
<CLSCompliantAttribute(False)> _
Public Overridable Function SetComponentProperty ( _
propertyName As String, _
propertyValue As Object _
) As IDTSCustomProperty100
'Utilisation
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
Paramètres
- propertyName
Type : System.String
The name of the IDTSCustomProperty100 whose value is set.
- propertyValue
Type : System.Object
The object stored in the Value property of the IDTSCustomProperty100 object.
Valeur de retour
Type : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSCustomProperty100
The IDTSCustomProperty100 object whose property is set.
Notes
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.