System.Data.MissingPrimaryKeyException Class

Represents the exception that is thrown when you try to access a row in a table that has no primary key.

See Also: MissingPrimaryKeyException Members

Syntax

public class MissingPrimaryKeyException : DataException

Remarks

The System.Data.MissingPrimaryKeyException is thrown when invoking the following methods to access a row in a table that has no primary key.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0