什么是在DataObjectMethodAttribute声明中使用布尔值?
使用布尔参数[System.ComponentModel.DataObjectMethodAttribute(DataObjectMethodType.Select,真)] 方法名称()
什么是在DataObjectMethodAttribute声明中使用布尔值?
使用布尔参数[System.ComponentModel.DataObjectMethodAttribute(DataObjectMethodType.Select,真)] 方法名称()
类型:System.Boolean
描述:true
以指示该属性被应用到方法是指定数据对象的默认方法;否则,false
。
这是从MSDN documentation。我建议读它:P
从这里http://msdn.microsoft.com/en-us/library/4ad99k3d.aspx
isDefaultType: System.Boolean true to indicate the method that the attribute is applied to is the default method of the data object for the specified methodType; otherwise, false.
MSDN指出,参数isDefault确定指定的DataObjectMethodType是否将该方法作为默认操作。
methodType
One of the DataObjectMethodType values that describes the data operation the method performs.
isDefault
true to indicate the method that the attribute is applied to is the default method of the data object for the specified methodType; otherwise, false.
-1:请先看文档,也许接受一些答案。 – 2011-02-17 12:21:29