TypeDescriptor.SetDefaultValue 方法 (Microsoft.Office.Server.ApplicationRegistry.Administration)

Sets a default value for this type descriptor for a method instance.

命名空间: Microsoft.Office.Server.ApplicationRegistry.Administration
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
Public Sub SetDefaultValue ( _
    methodInstanceId As UInteger, _
    defaultValue As Object _
)
用法
Dim instance As TypeDescriptor
Dim methodInstanceId As UInteger
Dim defaultValue As Object

instance.SetDefaultValue(methodInstanceId, defaultValue)
public void SetDefaultValue (
    uint methodInstanceId,
    Object defaultValue
)

参数

  • methodInstanceId
    The ID of the method instance.
  • defaultValue
    An object containing the default value.

另请参阅

参考

TypeDescriptor 类
TypeDescriptor 成员
Microsoft.Office.Server.ApplicationRegistry.Administration 命名空间