IVsUserContext.IsDirty(Int32) 方法

定義

判斷內容或子內容包中的使用者內容是否已變更。Determines whether the user context has changed in the context or subcontext bag.

public:
 int IsDirty([Runtime::InteropServices::Out] int % pfDirty);
int IsDirty([Runtime::InteropServices::Out] int & pfDirty);
public int IsDirty (out int pfDirty);
abstract member IsDirty : int -> int
Public Function IsDirty (ByRef pfDirty As Integer) As Integer

參數

pfDirty
Int32

[out,retval]如果 true 為,則表示使用者內容已變更。[out, retval] If true, then the user context has changed. 如果 false 為,則表示使用者內容未變更。If false, then the user context is unchanged.

傳回

Int32

如果方法成功,它會傳回 S_OKIf the method succeeds, it returns S_OK. 如果方法失敗,則會傳回錯誤碼。If it fails, it returns an error code.

備註

COM 簽章COM Signature

從內容 .idl:From context.idl:

HRESULT IVsUserContext::IsDirty(  
   [out, retval] BOOL * pfDirty  
);  

IVsUserContext.IsDirty您可以使用方法來判斷使用者內容是否已變更,以及將 SetDirty 內容包的內容標示為旗標的方法已變更。Use the IVsUserContext.IsDirty method to determine whether the user context has changed and the SetDirty method to flag that the contents of the context bag have changed.

適用於