銷售: 1-800-867-1380

RoleEnvironment 成員

Provides information about the configuration, endpoints, and status of running role instances.

下表列出 RoleEnvironment 型別公開的成員。

  名稱 說明
public property static CurrentRoleInstance Gets a RoleInstance object that represents the role instance in which the code is currently running.
public property static DeploymentId Gets the unique identifier of the deployment in which the role instance is running.
public property static IsAvailable Indicates whether the role instance is running in the Windows Azure environment.
public property static Roles Gets the set of Role objects defined for the hosted service.
回頁首

(請參閱 受保護的 方法)
 名稱說明
public methodEquals  多載。 (繼承自 Object)
public methodstaticGetConfigurationSettingValueRetrieves the value of a setting in the service configuration file.
public methodGetHashCode  (繼承自 Object)
public methodstaticGetLocalResourceRetrieves a specified local storage resource.
public methodGetType  (繼承自 Object)
public methodstaticReferenceEquals  (繼承自 Object)
public methodstaticRequestRecycleRequests that the current role instance be stopped and restarted.
public methodToString  (繼承自 Object)
回頁首

  名稱 說明
protected method Finalize  (繼承自 Object)
protected method MemberwiseClone  (繼承自 Object)
回頁首

  名稱 說明
public event static Changed Occurs after a change to the service configuration is applied to the running instances of a role.
public event static Changing Occurs before a change to the service configuration is applied to the running instances of a role.
public event static StatusCheck Occurs at a regular interval to indicate the status of a role instance.
public event static Stopping Occurs when a role instance is about to be stopped.
回頁首
本文對您有任何幫助嗎?
(剩餘 1500 個字元)
感謝您提供意見

社群新增項目

Microsoft 正展開一份線上問卷調查,了解您對於 MSDN 網站的看法。 如果您選擇參加,您離開 MSDN 網站時即會顯示線上問卷調查。

您是否想要參加?
顯示:
© 2014 Microsoft