Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 CreateInstance Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
InternalTypeHelper..::.CreateInstance Method

When overridden in a derived class, creates an internal Type.

Namespace:  System.Windows.Markup
Assembly:  WindowsBase (in WindowsBase.dll)
Visual Basic (Declaration)
Protected Friend MustOverride Function CreateInstance ( _
    type As Type, _
    culture As CultureInfo _
) As Object
Visual Basic (Usage)
Dim type As Type
Dim culture As CultureInfo
Dim returnValue As Object

returnValue = Me.CreateInstance(type, _
    culture)
C#
protected internal abstract Object CreateInstance(
    Type type,
    CultureInfo culture
)
Visual C++
protected public:
virtual Object^ CreateInstance(
    Type^ type, 
    CultureInfo^ culture
) abstract
JScript
protected internal abstract function CreateInstance(
    type : Type, 
    culture : CultureInfo
) : Object
XAML
You cannot use methods in XAML.

Parameters

type
Type: System..::.Type
The type.
culture
Type: System.Globalization..::.CultureInfo
Culture specific information.

Return Value

Type: System..::.Object
The new internal type.

The InternalTypeHelper class is not intended for use by anything other than the markup compiler.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker