8 references to CommandTag
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
3097
_activeConnection.AddWeakReference(this, SqlReferenceCollection.
CommandTag
);
4409
_activeConnection.AddWeakReference(this, SqlReferenceCollection.
CommandTag
);
4797
connection.RegisterForConnectionCloseNotification<T>(ref outterTask, this, SqlReferenceCollection.
CommandTag
);
fx\src\data\System\Data\SqlClient\SqlReferenceCollection.cs (5)
24
Debug.Assert(DataReaderTag == tag ||
CommandTag
== tag || BulkCopyTag == tag, "unexpected tag?");
26
Debug.Assert(
CommandTag
!= tag || value is SqlCommand, "tag doesn't match object type: SqlCommand");
49
return FindItem<SqlCommand>(
CommandTag
, (command) => (command.StateObject == stateObj));
54
Debug.Assert(DataReaderTag == tag ||
CommandTag
== tag || BulkCopyTag == tag, "unexpected tag?");
63
else if (tag ==
CommandTag
) {