SPItemKey members

Encapsulates information that identifies a list item.

The SPItemKey type exposes the following members.

Constructors

  Name Description
Public method SPItemKey() Initializes a new instance of the SPItemKey class.
Public method SPItemKey(Int32) Initializes a new instance of the SPItemKey class and specifies a value for the Id property.
Public method SPItemKey(String) Initializes a new instance of the SPItemKey class and specifies a value for the Key property.

Top

Properties

  Name Description
Public propertyStatic member Empty Gets a SPItemKey object that is created with the default SPItemKey() constructor and does not identify a list item.
Public property Id Gets or sets an integer that identifies a list item.
Public property Key Gets or sets a key that identifies a list item.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current SPItemKey object. (Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hash code for this SPItemKey object. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Public methodStatic member IsEmpty Checks if the specified SPItemKey object is empty.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string representation of the current SPItemKey. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality(SPItemKey, SPItemKey) Determines whether two specified SPItemKey objects are equal.
Public operatorStatic member Equality(SPItemKey, Object) Determines whether the specified Object is equal to the specified SPItemKey.
Public operatorStatic member Inequality(SPItemKey, SPItemKey) Determines whether the two specified SPItemKey objects are unequal.
Public operatorStatic member Inequality(SPItemKey, Object) Determines whether the specified Object is not equal to the specified SPItemKey.

Top

See also

Reference

SPItemKey class

Microsoft.SharePoint.Workflow namespace