GenerateScriptTypeAttribute(Type) Constructor
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.
Initializes a new instance of the GenerateScriptTypeAttribute class for the specified type.
public:
GenerateScriptTypeAttribute(Type ^ type);
public GenerateScriptTypeAttribute (Type type);
new System.Web.Script.Services.GenerateScriptTypeAttribute : Type -> System.Web.Script.Services.GenerateScriptTypeAttribute
Public Sub New (type As Type)
Parameters
- type
- Type
The type to include in the proxy class.
Exceptions
type
is null
.
Examples
The following example shows how to use GenerateScriptTypeAttribute to generate a proxy object for the specified type that uses a specific type identifier for the metadata marker.
Remarks
The ScriptTypeId property is an optional named parameter for this constructor.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for