use of boolean in DataObjectMethodAttribute declaration?
What is use of Bool parameter in
[Sy开发者_StackOverflowstem.ComponentModel.DataObjectMethodAttribute(DataObjectMethodType.Select, True)] Method name()
Type: System.Boolean
Description: 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
.
This is from the MSDN documentation. I recommend reading it :P
From here 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 states that the parameter isDefault determines if the specified DataObjectMethodType has that method as default action.
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.
精彩评论