Package() public static method

public static Package ( object package ) : void
package object
return void
Example #1
0
        protected internal PackagePart(Package package, Uri partUri, string contentType, CompressionOption compressionOption)
        {
            Check.Package(package);
            Check.PartUri(partUri);
            Check.ContentTypeIsValid(contentType);

            Package              = package;
            Uri                  = partUri;
            ContentType          = contentType;
            CompressionOption    = compressionOption;
            RelationshipsPartUri = PackUriHelper.GetRelationshipPartUri(Uri);
        }
Example #2
0
        internal PackageRelationship(string id, Package package, string relationshipType,
                                     Uri sourceUri, TargetMode targetMode, Uri targetUri)
        {
            Check.IdIsValid(id);
            Check.Package(package);
            Check.RelationshipTypeIsValid(relationshipType);
            Check.SourceUri(sourceUri);
            Check.TargetUri(targetUri);

            Id               = id;
            Package          = package;
            RelationshipType = relationshipType;
            SourceUri        = sourceUri;
            TargetMode       = targetMode;
            TargetUri        = targetUri;
        }