AddToHashtableActivity.IDynamicPropertyTypeProvider.GetPropertyType Method

Returns the Type of the specified property.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Private Function GetPropertyType ( _
    serviceProvider As IServiceProvider, _
    propertyName As String _
) As Type Implements IDynamicPropertyTypeProvider.GetPropertyType
'Usage
Dim instance As AddToHashtableActivity
Dim serviceProvider As IServiceProvider
Dim propertyName As String
Dim returnValue As Type

returnValue = CType(instance, IDynamicPropertyTypeProvider).GetPropertyType(serviceProvider, _
    propertyName)
TypeIDynamicPropertyTypeProvider.GetPropertyType(
    IServiceProvider serviceProvider,
    string propertyName
)

Parameters

Return Value

Type: System.Type
The type of the specified property.

Implements

IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider, String)

Remarks

This method is used at compile time to validate whether the properties are correctly bound to one other.

This method throws an ArgumentNullException if propertyName is null .

This method throws an InvalidOperation exception if the serviceProvider**[T:System.IServiceProvider.GetService(typeof(ITypeProvider))]** method returns null .

See Also

Reference

AddToHashtableActivity Class

AddToHashtableActivity Members

Microsoft.SharePoint.WorkflowActions Namespace