ParameterBuilder.SetConstant Method (Object)
Sets the default value of the parameter.
Assembly: mscorlib (in mscorlib.dll)
defaultValue is restricted to the following types: Boolean, SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, UInt64, Single, Double, DateTime, Char, String, and Enum. If the parameter type is a reference type, CLS compliance requires defaultValue to be null. However, starting with the .NET Framework 4, defaultValue can be non-null for a reference type as long as the value can be assigned to that reference type. For example, an Int32 value can be assigned to a parameter of type Object. This is not CLS-compliant, but it can be useful in interop scenarios.
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.1