共用方式為


DtsProperty 類別

Contains properties and methods used by several containers on their properties. This class cannot be inherited.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime..::..DtsProperty

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

語法

'宣告
Public NotInheritable Class DtsProperty _
    Inherits DtsObject
'用途
Dim instance As DtsProperty
public sealed class DtsProperty : DtsObject
public ref class DtsProperty sealed : public DtsObject
[<SealedAttribute>]
type DtsProperty =  
    class
        inherit DtsObject
    end
public final class DtsProperty extends DtsObject

DtsProperty 型別公開下列成員。

屬性

  名稱 說明
公用屬性 ConnectionType Returns the name of the connection manager used to create the connection. This field is read-only.
公用屬性 Get Returns a Boolean that indicates whether a property value can be read. This field is read-only.
公用屬性 Name Returns the name of the property. This field is read-only.
公用屬性 PropertyKind Gets the DTSPropertyKind enumeration that contains information about the custom attributes on a property. This information is used by the designer.
公用屬性 Set Returns a Boolean that indicates whether the referenced object property is changeable. This field is read-only.
公用屬性 Type Returns the data type of the parameter. This field is read-only.
公用屬性 TypeConverter Returns the assembly-qualified type name of the type converter object for the property.
公用屬性 UITypeEditor Returns the assembly-qualified type name of the graphical editor for the property. This type is read-only.

上層

方法

  名稱 說明
公用方法 Equals Determines whether two object instances are equal. (繼承自 DtsObject。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetExport Returns the export flag for the specified object.
公用方法 GetExpression Returns a String that contains the expression for the specified object. Null means no expression is assigned.
公用方法 GetHashCode Returns the hash code for this instance. (繼承自 DtsObject。)
公用方法 GetPackagePath Returns a String that contains the relative path to the location of the specified package.
公用方法 GetType (繼承自 Object。)
公用方法 GetValue Returns the value of the property.
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 SetExport Sets the export flag for the specified object.
公用方法 SetExpression Assigns the specified expression to the object. Specify nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) to remove an existing expression from the property.
公用方法 SetValue Sets the value of the property.
公用方法 ToString (繼承自 Object。)

上層

備註

Several containers implement the IDTSPropertiesProvider interface. It provides the inheritors acess to Properties collection, which is a collection of the properties that the container has. It's useful to iterate over this Properties collection instead of accessing each property individually. The Properties collection returns a DtsProperties object, and each individual object in the collection is a DtsProperty object. Because the collection of DtsProperty objects is stored in a DtsProperties collection, you can iterate over the collection using the foreach (For Each in Microsoft Visual Basic) syntax or the PropertyEnumerator and view the properties that this class has.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。