ParameterAttribute Constructor |
Create a new instance of
.
Namespace: MaxMind.DbAssembly: MaxMind.Db (in MaxMind.Db.dll) Version: 2.2.0
Syntaxpublic ParameterAttribute(
string parameterName,
bool alwaysCreate = false
)
Public Sub New (
parameterName As String,
Optional alwaysCreate As Boolean = false
)
public:
ParameterAttribute(
String^ parameterName,
bool alwaysCreate = false
)
new :
parameterName : string *
?alwaysCreate : bool
(* Defaults:
let _alwaysCreate = defaultArg alwaysCreate false
*)
-> ParameterAttribute
Parameters
- parameterName
- Type: System.String
The name of the parameter. - alwaysCreate (Optional)
- Type: System.Boolean
Whether to create the object even if the key
is not present in the database. If this is false, the default value will be used
(null for nullable types)
See Also