이 설명서는 보관되지만 유지 되지 않습니다.

Freezable.CreateInstanceCore 메서드

When implemented in a derived class, creates a new instance of that Freezable subclass.

네임스페이스: System.Windows
어셈블리: WindowsBase(windowsbase.dll)

protected abstract Freezable CreateInstanceCore ()
protected abstract Freezable CreateInstanceCore ()
protected abstract function CreateInstanceCore () : Freezable
XAML에서 메서드를 사용할 수 없습니다.

반환 값

The new instance.

Do not call this method directly (except when calling base in an implementation). This method is called internally by CreateInstance, whenever a new instance of the Freezable is created.

구현자 참고 사항: Every Freezable subclass must implement this method. Typical implementation is to simply call the class default constructor and return the result.

The following example shows a typical implementation of CreateInstanceCore.

public class MyFreezable : Freezable
{
    // Typical implementation of CreateInstanceCore
    protected override Freezable CreateInstanceCore()
    {
    
        return new MyFreezable();      
    }


    // ...
    // Other code for the MyFreezableClass.
    // ...
    
    
}


Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원
표시: