Refresh (clsServer)

ms132784.note(zh-tw,SQL.90).gif附註:
  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The Refresh method of an object of ClassType clsServer reads all current metadata from the repository and modifies all objects in the session's object model to match the current repository state.

語法

object.Refresh    

參數

  • object
    An object of ClassType clsServer.

備註

All objects in the session's object model are refreshed. This includes objects whose properties have not yet been saved to the repository, as well as objects whose properties in the repository have been changed by other users.

ms132784.note(zh-tw,SQL.90).gif附註:
  Objects that are locked are not refreshed.

範例

The following example invokes the Refresh method:

' Assume dsoServer has already been connected to Analysis Services.
dsoServer.Refresh

請參閱

參考

clsServer

說明及資訊

取得 SQL Server 2005 協助