C# Class System.IO.Packaging.Package

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

Private Properties

Свойство Type Description
CheckIsReadOnly void
CreateRelationship PackageRelationship
IDisposable void
LoadRelationships void
NextId string
Open Package
OpenCore Package
WriteRelationships void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public Close ( ) : void
Résultat void

CreatePart() public méthode

public CreatePart ( Uri partUri, string contentType ) : PackagePart
partUri System.Uri
contentType string
Résultat PackagePart

CreatePart() public méthode

public CreatePart ( Uri partUri, string contentType, CompressionOption compressionOption ) : PackagePart
partUri System.Uri
contentType string
compressionOption CompressionOption
Résultat PackagePart

CreatePartCore() protected abstract méthode

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

CreateRelationship() public méthode

public CreateRelationship ( Uri targetUri, TargetMode targetMode, string relationshipType ) : PackageRelationship
targetUri System.Uri
targetMode TargetMode
relationshipType string
Résultat PackageRelationship

CreateRelationship() public méthode

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

DeletePart() public méthode

public DeletePart ( Uri partUri ) : void
partUri System.Uri
Résultat void

DeletePartCore() protected abstract méthode

protected abstract DeletePartCore ( Uri partUri ) : void
partUri System.Uri
Résultat void

DeleteRelationship() public méthode

public DeleteRelationship ( string id ) : void
id string
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushCore() protected abstract méthode

protected abstract FlushCore ( ) : void
Résultat void

GetPart() public méthode

public GetPart ( Uri partUri ) : PackagePart
partUri System.Uri
Résultat PackagePart

GetPartCore() protected abstract méthode

protected abstract GetPartCore ( Uri partUri ) : PackagePart
partUri System.Uri
Résultat PackagePart

GetParts() public méthode

public GetParts ( ) : PackagePartCollection
Résultat PackagePartCollection

GetPartsCore() protected abstract méthode

protected abstract GetPartsCore ( ) : System.IO.Packaging.PackagePart[]
Résultat System.IO.Packaging.PackagePart[]

GetRelationship() public méthode

public GetRelationship ( string id ) : PackageRelationship
id string
Résultat PackageRelationship

GetRelationships() public méthode

public GetRelationships ( ) : PackageRelationshipCollection
Résultat PackageRelationshipCollection

GetRelationshipsByType() public méthode

public GetRelationshipsByType ( string relationshipType ) : PackageRelationshipCollection
relationshipType string
Résultat PackageRelationshipCollection

Open() public static méthode

public static Open ( Stream stream ) : Package
stream Stream
Résultat Package

Open() public static méthode

public static Open ( Stream stream, FileMode packageMode ) : Package
stream Stream
packageMode FileMode
Résultat Package

Open() public static méthode

public static Open ( Stream stream, FileMode packageMode, FileAccess packageAccess ) : Package
stream Stream
packageMode FileMode
packageAccess FileAccess
Résultat Package

Open() public static méthode

public static Open ( string path ) : Package
path string
Résultat Package

Open() public static méthode

public static Open ( string path, FileMode packageMode ) : Package
path string
packageMode FileMode
Résultat Package

Open() public static méthode

public static Open ( string path, FileMode packageMode, FileAccess packageAccess ) : Package
path string
packageMode FileMode
packageAccess FileAccess
Résultat Package

Open() public static méthode

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

Package() protected méthode

protected Package ( FileAccess openFileAccess ) : System
openFileAccess FileAccess
Résultat System

Package() protected méthode

protected Package ( FileAccess openFileAccess, bool streaming ) : System
openFileAccess FileAccess
streaming bool
Résultat System

PartExists() public méthode

public PartExists ( Uri partUri ) : bool
partUri System.Uri
Résultat bool

RelationshipExists() public méthode

public RelationshipExists ( string id ) : bool
id string
Résultat bool