共用方式為


ReportSizeConverter.ConvertTo 方法 (ITypeDescriptorContext, CultureInfo, Object, Type)

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Converts the given value object to the specified type, using the specified context and culture information.

命名空間:  Microsoft.ReportingServices.RdlObjectModel
組件:  Microsoft.ReportingServices.Designer.Controls (在 Microsoft.ReportingServices.Designer.Controls.dll 中)

語法

'宣告
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
'用途
Dim instance As ReportSizeConverter 
Dim context As ITypeDescriptorContext 
Dim culture As CultureInfo 
Dim value As Object 
Dim destinationType As Type 
Dim returnValue As Object 

returnValue = instance.ConvertTo(context, _
    culture, value, destinationType)
public override Object ConvertTo(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value,
    Type destinationType
)
public:
virtual Object^ ConvertTo(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value, 
    Type^ destinationType
) override
abstract ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object  
override ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object
public override function ConvertTo(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object, 
    destinationType : Type
) : Object

參數

  • destinationType
    型別:System.Type
    The Type to convert the value parameter to.

傳回值

型別:System.Object
An Object that represents the converted value.

請參閱

參考

ReportSizeConverter 類別

ConvertTo 多載

Microsoft.ReportingServices.RdlObjectModel 命名空間