Version

OpenPackagingNonConformanceReason Enumeration

For internal use only.
Syntax
'Declaration
 
Public Enum OpenPackagingNonConformanceReason 
   Inherits System.Enum
public enum OpenPackagingNonConformanceReason : System.Enum 
Members
MemberDescription
ConformantThe IPackagePart conforms fully to the ECMA TC45 Open Packaging Conventions.
ContentTypeHasCommentsThe package implementer shall require a content type that does not include comments and the format designer shall specify such a content type. [M1.15]
ContentTypeHasInvalidSyntaxIPackage implementers shall only create and only recognize parts with a content type; format designers shall specify a content type for each part included in the format. Content types for package parts shall fit the definition and syntax for media types as specified in RFC 2616, §3.7. [M1.13]
ContentTypeHasInvalidWhitespaceContent types shall not use linear white space either between the type and subtype or between an attribute and its value. Content types also shall not have leading or trailing white spaces. IPackage implementers shall create only such content types and shall require such content types when retrieving a part from a package; format designers shall specify only such content types for inclusion in the format. [M1.14]
ContentTypeHasParametersIPackage implementers and format designers shall not create content types with parameters for the package specific parts defined in this Open Packaging specification and shall treat the presence of parameters in these content types as an error. [M1.22]
ContentTypeMissingThe package implementer shall require a content type and the format designer shall specify the content type. [M1.2], [M1.13]
CouldNotGetPackagePartThe IPackage.GetPart method threw an exception.
DuplicateNamePart name equivalence is determined by comparing part names as case-insensitive ASCII strings. Packages shall not contain equivalent part names and package implementers shall neither create nor recognize packages with equivalent part names. [M1.12]
GrowthHintChangedIf the package implementer specifies a growth hint, it is set when a part is created and the package implementer shall not change the growth hint after the part has been created. [M1.16]
NameDerivesFromExistingPartNameA package implementer shall neither create nor recognize a part with a part name derived from another part name by appending segments to it. [M1.11]
NameDoesNotStartWithForwardSlashA part name shall start with a forward slash (“/”) character. [M1.4]
NameEndsWithForwardSlashA part name shall not have a forward slash as the last character. [M1.5]
NameMissingThe package implementer shall require a part name. [M1.1]
RelationshipIdInvalidThe package implementer shall require that every Relationship element has an Id attribute, the value of which is unique within the Relationships part, and that the Id type is xsd:ID, the value of which conforms to the naming restrictions for xsd:IDas described in the W3C Recommendation “XML Schema Part 2: Datatypes.” [M1.26]
RelationshipNameInvalidThe package implementer shall name relationship parts according to the special relationships part naming convention and require that parts with names that conform to this naming convention have the content type for a Relationships part. [M1.30]
RelationshipTargetInvalidThe package implementer shall require the Target attribute to be a URI reference pointing to a target resource. The URI reference shall be a URI or a relative reference. [M1.28]
RelationshipTargetNotRelativeReferenceWhen set to Internal, the Target attribute shall be a relative reference and that reference is interpreted relative to the “parent” part. For package relationships, the package implementer shallresolve relative references in the Target attribute against the pack URI that identifies the entire package resource. [M1.29]
RelationshipTargetsOtherRelationshipThe Relationships part shall not have relationships to any other part. IPackage implementers shall enforce this requirement upon the attempt to create such a relationship and shall treat any such relationship as invalid. [M1.25]
RelationshipTypeInvalidThe package implementer shall require the Type attribute to be a URI that defines the role of the relationship and the format designer shall specify such a Type. [M1.27]
SegmentEmptyA part name shall not have empty segments. [M1.3]
SegmentEndsWithDotCharacterA segment shall not end with a dot (“.”) character. [M1.9]
SegmentHasNonPCharCharactersA segment shall not hold any characters other than pchar characters. [M1.6]
SegmentHasPercentEncodedSlashCharactersA segment shall not contain percent-encoded forward slash (“/”), or backward slash (“\”) characters. [M1.7]
SegmentHasPercentEncodedUnreservedCharactersA segment shall not contain percent-encoded unreserved characters. [M1.8]
SegmentMissingNonDotCharacterA segment shall include at least one non-dot character. [M1.10]
XmlContentDrawsOnUndefinedNamespaceXML content shall not contain elements or attributes drawn from “xml” or “xsi” namespaces unless they are explicitly defined in the XSD schema or by other means described in this Open Packaging specification. IPackage implementers shall enforce this requirement upon creation and retrieval of the XML content. [M1.21]
XmlContentInvalidForSchemaXML content shall be valid against the corresponding XSD schema defined in this Open Packaging specification. In particular, the XML content shall not contain elements or attributes drawn from namespaces that are not explicitly defined in the corresponding XSD unless the XSD allows elements or attributes drawn from any namespace to be present in particular locations in the XML markup. IPackage implementers shall enforce this requirement upon creation and retrieval of the XML content. [M1.20]
XmlEncodingUnsupportedXML content shall be encoded using either UTF-8 or UTF-16. If any part includes an encoding declaration, as defined in §4.3.3 of the XML 1.0 specification, that declaration shall not name any encoding other than UTF-8 or UTF-16. IPackage implementers shall enforce this requirement upon creation and retrieval of the XML content. [M1.17]
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also