共用方式為


SPFileLockException members

Include protected members
Include inherited members

檔案鎖定會導致SPFile物件上作業期間發生錯誤時擲回的例外狀況。

The SPFileLockException type exposes the following members.

Constructors

  Name Description
Public method SPFileLockException(SPFile, String, Int32, SPFileLockExceptionType) 檔案發生錯誤,訊息會描述錯誤、 錯誤程式碼,以及檔案鎖定例外狀況型別,初始化SPFileLockException類別的新執行個體。
Public method SPFileLockException(String, Int32, SPFileLockExceptionType, SPFile.SPLockType, String, DateTime, String) 初始化新類別的執行個體SPFileLockException訊息,來描述錯誤、 錯誤程式碼、 檔案鎖定例外狀況的類型、 鎖定類型、 建立鎖定,鎖定到期時,時間和鎖定識別項 (ID) 的使用者名稱。

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property ErrorCode 取得識別例外狀況的整數。 (Inherited from SPException.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property LockedBy 取得擁有鎖定的使用者名稱。
Public property LockExpires 取得鎖定到期的時間與日期。
Public property LockId 取得鎖定的識別碼 (ID)。
Public property LockType 取得鎖定的型別。
Public property Message (Inherited from Exception.)
Public property NativeErrorMessage 取得與這個SPException物件相關聯的原生程式碼錯誤訊息。 (Inherited from SPException.)
Public property NativeStackTrace 取得與這個SPException物件相關的原生程式碼堆疊追蹤。 (Inherited from SPException.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)
Public property Type 取得值,描述例外狀況發生的原因。

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData 填入所提供的SerializationInfo物件, SPFileLockException的相關資訊。 (Overrides SPException.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

請參閱

參照

SPFileLockException class

Microsoft.SharePoint namespace