DtsProperty Class

Definition

包含几个容器使用的属性以及属性方法。Contains properties and methods used by several containers on their properties. 无法继承此类。This class cannot be inherited.

public ref class DtsProperty sealed : Microsoft::SqlServer::Dts::Runtime::DtsObject
public sealed class DtsProperty : Microsoft.SqlServer.Dts.Runtime.DtsObject
type DtsProperty = class
    inherit DtsObject
Public NotInheritable Class DtsProperty
Inherits DtsObject
Inheritance
DtsProperty

Remarks

若干容器实现 IDTSPropertiesProvider 接口。Several containers implement the IDTSPropertiesProvider interface. 它向继承者提供对 Properties 集合的支持,该集合是容器具有的属性的集合。It provides the inheritors acess to Properties collection, which is a collection of the properties that the container has. 循环访问此集合是非常有用 Properties 的,而不是单独访问每个属性。It's useful to iterate over this Properties collection instead of accessing each property individually. Properties集合返回一个 DtsProperties 对象,而集合中的每个对象都是一个 DtsProperty 对象。The Properties collection returns a DtsProperties object, and each individual object in the collection is a DtsProperty object. 由于对象的集合 DtsProperty 存储在 DtsProperties 集合中,因此你可以使用 foreach (在 Visual Basic)语法或中的来循环访问该集合, For Each Microsoft PropertyEnumerator 并查看此类拥有的属性。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.

Properties

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

获取包含有关属性的自定义特性信息的 DTSPropertyKind 枚举。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.

Methods

Equals(Object)

确定两个对象实例是否相等。Determines whether two object instances are equal.

(Inherited from DtsObject)
GetExport(Object)

返回指定对象的导出标志。Returns the export flag for the specified object.

GetExpression(Object)

返回一个字符串,其中包含指定对象的表达式。Returns a String that contains the expression for the specified object. Null 表示不分配表达式。Null means no expression is assigned.

GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

(Inherited from DtsObject)
GetPackagePath(Object)

返回一个字符串,该字符串包含指定包的位置的相对路径。Returns a String that contains the relative path to the location of the specified package.

GetValue(Object)

返回属性的值。Returns the value of the property.

SetExport(Object, Boolean)

设置指定对象的导出标志。Sets the export flag for the specified object.

SetExpression(Object, String)

将指定的表达式分配给对象。Assigns the specified expression to the object. 指定 null 将从属性中删除现有表达式。Specify null to remove an existing expression from the property.

SetValue(Object, Object)

设置属性的值。Sets the value of the property.

Applies to