ThrowActivity.IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider, String) 方法

定义

返回指定属性的 TypeReturns the Type of the specified property.

 virtual Type ^ System.Workflow.ComponentModel.IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider ^ serviceProvider, System::String ^ propertyName) = System::Workflow::ComponentModel::IDynamicPropertyTypeProvider::GetPropertyType;
Type IDynamicPropertyTypeProvider.GetPropertyType (IServiceProvider serviceProvider, string propertyName);
abstract member System.Workflow.ComponentModel.IDynamicPropertyTypeProvider.GetPropertyType : IServiceProvider * string -> Type
override this.System.Workflow.ComponentModel.IDynamicPropertyTypeProvider.GetPropertyType : IServiceProvider * string -> Type
Function GetPropertyType (serviceProvider As IServiceProvider, propertyName As String) As Type Implements IDynamicPropertyTypeProvider.GetPropertyType

参数

serviceProvider
IServiceProvider

一个对象,它实现 IServiceProvider,以便在需要设计时服务时提供对这些服务的访问。An object that implements IServiceProvider to provide access to design time services if they are needed.

propertyName
String

属性的名称。The name of the property.

返回

Type

名称作为 propertyName 参数进行传递的属性的 TypeThe Type for the property whose name is passed as the propertyName parameter.

实现

注解

在编译时用于验证属性相互之间是否正确绑定。Used at compile time to validate if the properties are correctly bound to one other.

适用于