指定可传递入或出某个行为的对象类型。
命名空间:  Microsoft.VisualStudio.Uml.Classes
程序集:  Microsoft.VisualStudio.Uml.Interfaces(在 Microsoft.VisualStudio.Uml.Interfaces.dll 中)
语法
声明
Public Interface IParameter _
    Inherits IMultiplicityElement, IConnectableElement, ITypedElement, IParameterableElement,  _
    INamedElement, IElement
public interface IParameter : IMultiplicityElement, 
    IConnectableElement, ITypedElement, IParameterableElement, INamedElement, IElement
public interface class IParameter : IMultiplicityElement, 
    IConnectableElement, ITypedElement, IParameterableElement, INamedElement, IElement
type IParameter =  
    interface
        interface IMultiplicityElement
        interface IConnectableElement
        interface ITypedElement
        interface IParameterableElement
        interface INamedElement
        interface IElement
    end
public interface IParameter extends IMultiplicityElement, IConnectableElement, ITypedElement, IParameterableElement, INamedElement, IElement
IParameter 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | ApplicableStereotypes | 可应用于此元素的构造型集合。 (继承自 IElement。) | 
| .gif) | AppliedStereotypes | 每个 IStereotypeInstance 表示构造型已被应用到此元素上。 (继承自 IElement。) | 
| .gif) | ClientDependencies | 获取此元素为客户端的依赖关系。 (继承自 INamedElement。) | 
| .gif) | Default | 获取一个当没有参数时表示参数默认值的字符串。 | 
| .gif) | DefaultValue | 在未为 Parameter 提供参数时要使用的值。 | 
| .gif) | Description | 此元素的说明。 (继承自 IElement。) | 
| .gif) | Direction | 在 = 将数据传入行为;out = 将数据传出;inout = 先传入数据,然后传出;return = 在执行的结尾,将数据作为返回值传递回调用方。 | 
| .gif) | Ends | 获取此元素所连接到的连接器端点。 (继承自 IConnectableElement。) | 
| .gif) | IsOrdered | 重数 1。如果集合中的元素形成具有明确顺序的序列,则为 true。 (继承自 IMultiplicityElement。) | 
| .gif) | IsUnique | 重数 1。如果集合中的每个值各不相同,则为 true。默认值为 true。 (继承自 IMultiplicityElement。) | 
| .gif) | LowerValue | 获取允许的元素最小数。至少必须有 0 个,不得为 *。 (继承自 IMultiplicityElement。) | 
| .gif) | Name | 命名空间中包含此元素的名称。在此命名空间中,应不存在具有此名称的其他元素。 (继承自 INamedElement。) | 
| .gif) | Namespace | 获取定义了该元素的命名空间。可能为 null。 (继承自 INamedElement。) | 
| .gif) | Operation | 获取有参数的操作。 | 
| .gif) | OwnedComments | 获取此元素(而非链接到它的注释)所包含的注解。 (继承自 IElement。) | 
| .gif) | OwnedElements | 获取此元素的各个元素。除了根 IModel 之外的每个元素都有一个所有者。 (继承自 IElement。) | 
| .gif) | Owner | 获取拥有此元素的“元素”。除了根 IModel 之外的每个元素都有一个所有者。 (继承自 IElement。) | 
| .gif) | OwningTemplateParameter | 如果不为空,此元素作为模板中的参数进行定义。 (继承自 IParameterableElement。) | 
| .gif) | QualifiedName | 获取该元素名称,以包含此元素的命名空间的限定名为前缀。空是如果名称为空,或者命名空间的限定名为空。 (继承自 INamedElement。) | 
| .gif) | TemplateParameter | 如果不为空,此元素作为模板中的参数进行定义。 (继承自 IParameterableElement。) | 
| .gif) | Type | 可以分配给该元素的实例类型。如果未指定,则可以分配任何实例。 (继承自 ITypedElement。) | 
| .gif) | UpperValue | 获取允许的最大数。如果为 *,则没有最大值。至少必须有 1 个。 (继承自 IMultiplicityElement。) | 
| .gif) | Visibility | 定义可以引用元素的位置。公开 = 在任何位置中可见;专用 = 仅在所属命名空间中可见;受保护 = 对与所属命名空间具有泛化关系的元素可见;包 = 仅在包含命名空间的包中可见,前提是包存在。默认值为公共值。 (继承自 INamedElement。) | 
| .gif) | VisibleAppliedStereotypes | (继承自 IElement。) | 
页首
扩展方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | AddReference | 将字符串链接到元素,通常在此元素中该字符串为引用(如 URI、modelbus 引用或工作项 ID)。用名称指示引用的类型。返回表示链接的 IReference 对象。 (由 UmlExtensions 定义。) | 
| .gif) | ApplyStereotype | 将构造型应用于元素。创建用构造类型表示模型元素的扩展的 IStereotypeInstance。 (由 ProfileStereotypeExtensions 定义。) | 
| .gif) | CreateLiteralBooleanDefaultValue | 在 Parameter 中创建新的 ILiteralBoolean 对象 (由 ParameterExtensions 定义。) | 
| .gif) | CreateLiteralIntegerDefaultValue | 在 Parameter 中创建新的 ILiteralInteger 对象 (由 ParameterExtensions 定义。) | 
| .gif) | CreateLiteralStringDefaultValue | 在 Parameter 中创建新的 ILiteralString 对象 (由 ParameterExtensions 定义。) | 
| .gif) | Delete | 删除此元素和其所有的关系、拥有的元素以及形状。 (由 UmlExtensions 定义。) | 
| .gif) | DeleteAllReference | 移除给定标记的所有引用。 (由 UmlExtensions 定义。) | 
| .gif) | GetBounds | 表格 [下限值]..[上限值] 中作为字符串的多重性。 (由 MultiplicityElementExtensions 定义。) | 
| .gif) | GetConnectedElements | 通过连接器连接到该元素的元素。例如,如果此元素是组件的一部分则此方法将返回连接到组件的部件和端口。 (由 ConnectableElementExtensions 定义。) | 
| .gif) | GetDependencyClients | 返回依赖此元素的元素的集合。 (由 NamedElementExtensions 定义。) | 
| .gif) | GetDependencySuppliers | 返回此元素依赖的元素的集合。 (由 NamedElementExtensions 定义。) | 
| .gif) | GetId | 获取一个 GUID,该 GUID 可以标识这个元素。 (由 UmlExtensions 定义。) | 
| .gif) | GetModelStore | 获取包含该元素的 IModelStore 属性。 (由 UmlExtensions 定义。) | 
| .gif) | GetReferences | 获取与该元素相关联的一个给定的标记的 IReferences。 (由 UmlExtensions 定义。) | 
| .gif) | GetRelatedElements<T> | 按照指定的类型的关系,获取此元素相关的元素。 (由 UmlExtensions 定义。) | 
| .gif) | GetRelatedLinks<T> | 获取从或到该元素的指定类型的关系。 (由 UmlExtensions 定义。) | 
| .gif) | SetBounds | 根据表格 [ 下限值 ]..[ 上限值 ] 中的字符串设置多重下限值或上限值。[UpperValue] 可以为“*”。 (由 MultiplicityElementExtensions 定义。) | 
| .gif) | Shapes | 显示任何打开的关系图或指定的打开关系图上的模型元素的所有形状。 (由 PresentationHelpers 定义。) | 
页首
备注
提示
此类型上定义的方法为 extension methods(扩展方法)。 要使用方法,您必须将项目引用添加到 .NET assembly Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll,并且您的代码中必须包含指令 using Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml。