简体   繁体   中英

ASP Page directive inherits structure

Kind of a simple question, but I'm having trouble finding exactly the definition for this. On an .aspx page, in the @Page directive, what is the exact definition/structure of the inherits tag? For example, if my sln was called ClassLibrary1, my .dll was called ClassLibrary1.dll, the classes namespace was Test1, and the class was called Test1Page, would it look like:

Inherits="Test1.Test1Page,ClassLibrary1,Version=1.0.0.0,Culture=neutral,PublicKeyToken=f659cda3c5ffa92d"

Or differently? Where does exactly each part go (other than the Public key)?

This is a uniform syntax known as "assembly qualified naming" in .NET and you can read about it here:

AssemblyQualifiedName

(converted from comment)

This is the Assembly-Qualified name of the Type: http://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname.aspx

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