NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataTable.ShouldPersistPrimaryKey

Indicates whether the PrimaryKey property should be persisted.

[Visual Basic]
Overridable Public Function ShouldPersistPrimaryKey() As Boolean
[C#]
public virtual bool ShouldPersistPrimaryKey();
[C++]
public: virtual bool ShouldPersistPrimaryKey();
[JScript]
public function ShouldPersistPrimaryKey() : Boolean;

Return Value

true if the property value has been changed from its default; otherwise, false.

Remarks

You typically use this method only if you are either creating a designer for the DataTable, or creating your own control incorporating the DataTable.

See Also

DataTable Class | DataTable Members | System.Data Namespace | ResetPrimaryKey