C# Class System.IO.Packaging.Package

Abstract Base class for the Package. This is a part of the Packaging Layer APIs
Inheritance: IDisposable
Exibir arquivo Open project: WordDocX/DocX Class Usage Examples

Private Properties

Property Type Description
CheckIsReadOnly void
CreateRelationship PackageRelationship
IDisposable void
LoadRelationships void
NextId string
Open Package
OpenCore Package
WriteRelationships void

Public Methods

Method Description
Close ( ) : void
CreatePart ( Uri partUri, string contentType ) : PackagePart
CreatePart ( Uri partUri, string contentType, CompressionOption compressionOption ) : PackagePart
CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType ) : PackageRelationship
CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType, string id ) : PackageRelationship
DeletePart ( Uri partUri ) : void
DeleteRelationship ( string id ) : void
Flush ( ) : void
GetPart ( Uri partUri ) : PackagePart
GetParts ( ) : PackagePartCollection
GetRelationship ( string id ) : PackageRelationship
GetRelationships ( ) : PackageRelationshipCollection
GetRelationshipsByType ( string relationshipType ) : PackageRelationshipCollection
Open ( Stream stream ) : Package
Open ( Stream stream, FileMode packageMode ) : Package
Open ( Stream stream, FileMode packageMode, FileAccess packageAccess ) : Package
Open ( string path ) : Package
Open ( string path, FileMode packageMode ) : Package
Open ( string path, FileMode packageMode, FileAccess packageAccess ) : Package
Open ( string path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare ) : Package
PartExists ( Uri partUri ) : bool
RelationshipExists ( string id ) : bool

Protected Methods

Method Description
CreatePartCore ( Uri partUri, string contentType, CompressionOption compressionOption ) : PackagePart
DeletePartCore ( Uri partUri ) : void
Dispose ( bool disposing ) : void
FlushCore ( ) : void
GetPartCore ( Uri partUri ) : PackagePart
GetPartsCore ( ) : System.IO.Packaging.PackagePart[]
Package ( FileAccess openFileAccess ) : System
Package ( FileAccess openFileAccess, bool streaming ) : System

Private Methods

Method Description
CheckIsReadOnly ( ) : void
CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType, string id, bool loading ) : PackageRelationship
IDisposable ( ) : void
LoadRelationships ( ) : void
NextId ( ) : string
Open ( Stream stream, FileMode packageMode, FileAccess packageAccess, bool ownsStream ) : Package
OpenCore ( Stream stream, FileMode packageMode, FileAccess packageAccess, bool ownsStream ) : Package
WriteRelationships ( PackageRelationship>.Dictionary relationships, Stream stream ) : void

Method Details

Close() public method

public Close ( ) : void
return void

CreatePart() public method

public CreatePart ( Uri partUri, string contentType ) : PackagePart
partUri System.Uri
contentType string
return PackagePart

CreatePart() public method

public CreatePart ( Uri partUri, string contentType, CompressionOption compressionOption ) : PackagePart
partUri System.Uri
contentType string
compressionOption CompressionOption
return PackagePart

CreatePartCore() protected abstract method

protected abstract CreatePartCore ( Uri partUri, string contentType, CompressionOption compressionOption ) : PackagePart
partUri System.Uri
contentType string
compressionOption CompressionOption
return PackagePart

CreateRelationship() public method

public CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType ) : PackageRelationship
targetUri System.Uri
targetMode TargetMode
relationshipType string
return PackageRelationship

CreateRelationship() public method

public CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType, string id ) : PackageRelationship
targetUri System.Uri
targetMode TargetMode
relationshipType string
id string
return PackageRelationship

DeletePart() public method

public DeletePart ( Uri partUri ) : void
partUri System.Uri
return void

DeletePartCore() protected abstract method

protected abstract DeletePartCore ( Uri partUri ) : void
partUri System.Uri
return void

DeleteRelationship() public method

public DeleteRelationship ( string id ) : void
id string
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

FlushCore() protected abstract method

protected abstract FlushCore ( ) : void
return void

GetPart() public method

public GetPart ( Uri partUri ) : PackagePart
partUri System.Uri
return PackagePart

GetPartCore() protected abstract method

protected abstract GetPartCore ( Uri partUri ) : PackagePart
partUri System.Uri
return PackagePart

GetParts() public method

public GetParts ( ) : PackagePartCollection
return PackagePartCollection

GetPartsCore() protected abstract method

protected abstract GetPartsCore ( ) : System.IO.Packaging.PackagePart[]
return System.IO.Packaging.PackagePart[]

GetRelationship() public method

public GetRelationship ( string id ) : PackageRelationship
id string
return PackageRelationship

GetRelationships() public method

public GetRelationships ( ) : PackageRelationshipCollection
return PackageRelationshipCollection

GetRelationshipsByType() public method

public GetRelationshipsByType ( string relationshipType ) : PackageRelationshipCollection
relationshipType string
return PackageRelationshipCollection

Open() public static method

public static Open ( Stream stream ) : Package
stream Stream
return Package

Open() public static method

public static Open ( Stream stream, FileMode packageMode ) : Package
stream Stream
packageMode FileMode
return Package

Open() public static method

public static Open ( Stream stream, FileMode packageMode, FileAccess packageAccess ) : Package
stream Stream
packageMode FileMode
packageAccess FileAccess
return Package

Open() public static method

public static Open ( string path ) : Package
path string
return Package

Open() public static method

public static Open ( string path, FileMode packageMode ) : Package
path string
packageMode FileMode
return Package

Open() public static method

public static Open ( string path, FileMode packageMode, FileAccess packageAccess ) : Package
path string
packageMode FileMode
packageAccess FileAccess
return Package

Open() public static method

public static Open ( string path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare ) : Package
path string
packageMode FileMode
packageAccess FileAccess
packageShare FileShare
return Package

Package() protected method

protected Package ( FileAccess openFileAccess ) : System
openFileAccess FileAccess
return System

Package() protected method

protected Package ( FileAccess openFileAccess, bool streaming ) : System
openFileAccess FileAccess
streaming bool
return System

PartExists() public method

public PartExists ( Uri partUri ) : bool
partUri System.Uri
return bool

RelationshipExists() public method

public RelationshipExists ( string id ) : bool
id string
return bool