IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定属性的 Type。
public:
Type ^ GetPropertyType(IServiceProvider ^ serviceProvider, System::String ^ propertyName);
public Type GetPropertyType(IServiceProvider serviceProvider, string propertyName);
abstract member GetPropertyType : IServiceProvider * string -> Type
Public Function GetPropertyType (serviceProvider As IServiceProvider, propertyName As String) As Type
参数
- serviceProvider
- IServiceProvider
实现 IServiceProvider 提供对设计时服务的访问权限(如果需要)的对象。
- propertyName
- String
属性的名称。
返回
其 Type 名称作为 propertyName 参数传递的属性的 。
注解
在编译时用于验证属性是否已正确绑定到彼此。