NamespaceIdentity Attribute Group Attribute Group
Contains a namespace (scope) for SDM names.
<xs:attributeGroup name="NamespaceIdentity">
<xs:attribute name="Name"
type="Path"
use="required"
/>
<xs:attribute name="Version"
type="FourPartVersionType"
use="optional"
/>
<xs:attribute name="PublicKey"
type="PublicKeyType"
use="optional"
/>
<xs:attribute name="PublicKeyToken"
type="PublicKeyTokenType"
use="optional"
/>
<xs:attribute name="Culture"
type="CultureNeutral"
use="optional"
/>
<xs:attribute name="Platform"
type="Platform"
use="optional"
/>
</xs:attributeGroup>
Attributes
Name | Type | Description |
---|---|---|
Culture | CultureNeutral | The culture of the binaries. |
Name | Path | The name of a .sdm file, used to reference the contents of the file. |
Platform | Platform | The supported platform for the binaries. |
PublicKey | PublicKeyType | The public key for the key pair used to sign the .sdm file. |
PublicKeyToken | PublicKeyTokenType | The public key associated with the .sdm file. |
Version | FourPartVersionType | The version of the contents of a .sdm file. All the elements in the file have the same version number. |
Remarks
The Name attribute, in combination with the PublicKeyToken attribute, provides a strong name for a .sdm file.
The public key is stored within the signed .sdm file. A public key token is a 16-character hex string that identifies the public part of a public/private key pair. This is not the public key; it is a 64-bit hash of the public key.
The .sdm file language is specified using a culture identifier that consists of two or three lowercase letters that define the language, and then two, three, or four uppercase and lowercase letters that define the region. A document may identify its culture as neutral when it does not contain language-specific binaries.
When a .sdm file is loaded by the compiler, each of the .sdm files imported by this file must resolve to one of the reference files used as a command-line argument to the compiler. Each attribute that is specified in the Import element is used by the compiler to perform the resolution. When the compiled .sdmdocument file is saved after a successful compilation, the compiler updates each NamespaceIdentity attribute in the Import element of the file from the attributes in the SystemDefinitionModel element of the referenced file.
The Version attribute is a four-part dot-separated number with the form Major.Minor.Build.Revision, where each field can range from 0 through 65535. Keep in mind that when you change the version number between released versions of a .sdm file, you can break the references in the existing SDM files. When the compiler resolves a reference, the version must match the following criteria:
- The Major and Minor versions must match.
- The build version of the referenced file, in the SystemDefinitionModel element, must be greater than or equal to the build version of the Import element.
- The revision version of the referenced file, in the SystemDefinitionModel element, must be greater than or equal to the revision version of the Import element.
See Also
SystemDefinitionModel Schema Attribute Groups
Send comments about this topic to Microsoft
Build date: 9/5/2007