PackagePart.GetContentTypeCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, returns the MIME type of the part content.
protected:
virtual System::String ^ GetContentTypeCore();
protected virtual string GetContentTypeCore ();
abstract member GetContentTypeCore : unit -> string
override this.GetContentTypeCore : unit -> string
Protected Overridable Function GetContentTypeCore () As String
Returns
The MIME type of the part content.
Exceptions
The derived class does not provide an override implementation required for the GetContentTypeCore() method.
Remarks
GetContentTypeCore is a virtual method of the PackagePart abstract base class. Implement this method only in derived types where the value for the content type cannot be provided at the time of construction, or if calculating the content type value is a nontrivial or costly operation. The return value must be a valid MIME content type.
Derived classes can call GetContentTypeCore to initialize the ContentType property of the derived class to a default value. After the ContentType property has been set it cannot be changed.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示