简体   繁体   中英

hostingEnvironment.ApplicationID property

From what I have read on msdn , this property returns the unique identifier of the application. But what does that actually mean?

Is it a sort of ID created for that application on IIS?

Or is it a random ID generated on different sessions of the application? Or something else and i'm grasping the concept completely wrong?

It is the unique identifier in the IIS metabase assigned to each application.

Usually it would look something like:

/LM/W3SVC/1/ROOT

When 1 in this case is the number you'll see in the "Sites" panel in your IIS manager:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM