편집

다음을 통해 공유


TemplateContentLoader.Save(Object, IServiceProvider) Method

Definition

Do not use; always throws an exception.

public:
 override System::Xaml::XamlReader ^ Save(System::Object ^ value, IServiceProvider ^ serviceProvider);
public override System.Xaml.XamlReader Save (object value, IServiceProvider serviceProvider);
override this.Save : obj * IServiceProvider -> System.Xaml.XamlReader
Public Overrides Function Save (value As Object, serviceProvider As IServiceProvider) As XamlReader

Parameters

value
Object

The input value to commit for deferred loading.

serviceProvider
IServiceProvider

Service provider for required services.

Returns

Always throws an exception.

Exceptions

Thrown in all cases.

Remarks

The purpose of TemplateContentLoader is to load the XAML and invoke an object factory metaphor, a Save path is not part of its intended design. The IXamlObjectWriterFactory passed as a service for Load provides support for all further operations involving XAML and the template.

Applies to