public sealed class SpannerParameterCollection : DbParameterCollection, IDataParameterCollection, IList, ICollection, IEnumerable<SpannerParameter>, IEnumerable
Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerParameterCollection.
Represents a collection of parameters associated with a SpannerCommand and their
respective mappings to columns in a DataSet.
Inherited Members
System.Data.Common.DbParameterCollection.System.Collections.IList.get_Item(int)
System.Data.Common.DbParameterCollection.System.Collections.IList.set_Item(int, object)
System.Data.Common.DbParameterCollection.System.Data.IDataParameterCollection.get_Item(string)
System.Data.Common.DbParameterCollection.System.Data.IDataParameterCollection.set_Item(string, object)
Namespace
GoogleCloudGoogle.Cloud.SpannerData
Assembly
Google.Cloud.Spanner.Data.dll
Constructors
SpannerParameterCollection(IEnumerable<SpannerParameter>)
public SpannerParameterCollection(IEnumerable<SpannerParameter> initialParameters = null)
Initializes a new SpannerParameterCollection with the given set of optional SpannerParameter
objects.
Properties
Count
public override int Count { get; }
Property Value |
---|
Type | Description |
int | |
Overrides
IsFixedSize
public override bool IsFixedSize { get; }
Property Value |
---|
Type | Description |
bool | |
Overrides
IsReadOnly
public override bool IsReadOnly { get; }
Property Value |
---|
Type | Description |
bool | |
Overrides
IsSynchronized
public override bool IsSynchronized { get; }
Property Value |
---|
Type | Description |
bool | |
Overrides
SyncRoot
public override object SyncRoot { get; }
Property Value |
---|
Type | Description |
object | |
Overrides
Methods
Add(object)
public override int Add(object value)
Parameter |
---|
Name | Description |
value | object
|
Returns |
---|
Type | Description |
int | |
Overrides
Add(string, SpannerDbType)
public SpannerParameter Add(string parameterName, SpannerDbType dbType)
Parameters |
---|
Name | Description |
parameterName | string
The name of the parameter. For Insert, Update and Delete commands, this name should
be the name of a valid Column in a Spanner table. In Select commands, this name should be the name of a parameter
used in the SQL Query. Must not be null
|
dbType | SpannerDbType
One of the SpannerDbType values that indicates the type of the parameter.
Must not be null.
|
Add(string, SpannerDbType, object)
public SpannerParameter Add(string parameterName, SpannerDbType dbType, object value)
Parameters |
---|
Name | Description |
parameterName | string
The name of the parameter. For Insert, Update and Delete commands, this name should
be the name of a valid Column in a Spanner table. In Select commands, this name should be the name of a parameter
used in the SQL Query. Must not be null.
|
dbType | SpannerDbType
One of the SpannerDbType values that indicates the type of the parameter.
Must not be null.
|
value | object
An object that is the value of the SpannerParameter. May be null.
|
AddRange(Array)
public override void AddRange(Array values)
Parameter |
---|
Name | Description |
values | Array
|
Overrides
Clear()
public override void Clear()
Overrides
Clone()
public SpannerParameterCollection Clone()
Contains(object)
public override bool Contains(object value)
Parameter |
---|
Name | Description |
value | object
|
Returns |
---|
Type | Description |
bool | |
Overrides
Contains(string)
public override bool Contains(string value)
Parameter |
---|
Name | Description |
value | string
|
Returns |
---|
Type | Description |
bool | |
Overrides
CopyTo(Array, int)
public override void CopyTo(Array array, int index)
Parameters |
---|
Name | Description |
array | Array
|
index | int
|
Overrides
GetEnumerator()
public override IEnumerator GetEnumerator()
Overrides
GetParameter(int)
protected override DbParameter GetParameter(int index)
Parameter |
---|
Name | Description |
index | int
|
Overrides
GetParameter(string)
protected override DbParameter GetParameter(string parameterName)
Parameter |
---|
Name | Description |
parameterName | string
|
Overrides
IndexOf(object)
public override int IndexOf(object value)
Parameter |
---|
Name | Description |
value | object
|
Returns |
---|
Type | Description |
int | |
Overrides
IndexOf(string)
public override int IndexOf(string parameterName)
Parameter |
---|
Name | Description |
parameterName | string
|
Returns |
---|
Type | Description |
int | |
Overrides
Insert(int, object)
public override void Insert(int index, object value)
Overrides
Remove(object)
public override void Remove(object value)
Parameter |
---|
Name | Description |
value | object
|
Overrides
RemoveAt(int)
public override void RemoveAt(int index)
Parameter |
---|
Name | Description |
index | int
|
Overrides
RemoveAt(string)
public override void RemoveAt(string parameterName)
Parameter |
---|
Name | Description |
parameterName | string
|
Overrides
SetParameter(int, DbParameter)
protected override void SetParameter(int index, DbParameter value)
Overrides
SetParameter(string, DbParameter)
protected override void SetParameter(string parameterName, DbParameter value)
Overrides
Explicit Interface Implementations
IEnumerable<SpannerParameter>.GetEnumerator()
IEnumerator<SpannerParameter> IEnumerable<SpannerParameter>.GetEnumerator()