Share via


ClassWithOptionalArgsCtorWithStructs Constructor

Definition

public ClassWithOptionalArgsCtorWithStructs (DateTime dateTime = default, DateTime dateTimeDefault = default, TimeSpan timeSpan = default, TimeSpan timeSpanDefault = default, DateTimeOffset dateTimeOffset = default, DateTimeOffset dateTimeOffsetDefault = default, Guid guid = default, Guid guidDefault = default, Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.CustomStruct customStruct = default, Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.CustomStruct customStructDefault = default, ConsoleColor? color = 2, ConsoleColor? colorNull = default, int? integer = 12, int? integerNull = default, Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.StructWithPublicDefaultConstructor structWithConstructor = default);
new Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs : DateTime * DateTime * TimeSpan * TimeSpan * DateTimeOffset * DateTimeOffset * Guid * Guid * Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.CustomStruct * Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.CustomStruct * Nullable<ConsoleColor> * Nullable<ConsoleColor> * Nullable<int> * Nullable<int> * Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs.StructWithPublicDefaultConstructor -> Microsoft.Extensions.DependencyInjection.Specification.ClassWithOptionalArgsCtorWithStructs
Public Sub New (Optional dateTime As DateTime = Nothing, Optional dateTimeDefault As DateTime = Nothing, Optional timeSpan As TimeSpan = Nothing, Optional timeSpanDefault As TimeSpan = Nothing, Optional dateTimeOffset As DateTimeOffset = Nothing, Optional dateTimeOffsetDefault As DateTimeOffset = Nothing, Optional guid As Guid = Nothing, Optional guidDefault As Guid = Nothing, Optional customStruct As ClassWithOptionalArgsCtorWithStructs.CustomStruct = Nothing, Optional customStructDefault As ClassWithOptionalArgsCtorWithStructs.CustomStruct = Nothing, Optional color As Nullable(Of ConsoleColor) = 2, Optional colorNull As Nullable(Of ConsoleColor) = Nothing, Optional integer As Nullable(Of Integer) = 12, Optional integerNull As Nullable(Of Integer) = Nothing, Optional structWithConstructor As ClassWithOptionalArgsCtorWithStructs.StructWithPublicDefaultConstructor = Nothing)

Parameters

dateTime
DateTime
dateTimeDefault
DateTime
timeSpan
TimeSpan
timeSpanDefault
TimeSpan
dateTimeOffset
DateTimeOffset
dateTimeOffsetDefault
DateTimeOffset
guid
Guid
guidDefault
Guid
colorNull
Nullable<ConsoleColor>
integer
Nullable<Int32>
integerNull
Nullable<Int32>

Applies to