ClassWithOptionalArgsCtorWithStructs 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.
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
- customStruct
- ClassWithOptionalArgsCtorWithStructs.CustomStruct
- customStructDefault
- ClassWithOptionalArgsCtorWithStructs.CustomStruct
- color
- Nullable<ConsoleColor>
- colorNull
- Nullable<ConsoleColor>
- structWithConstructor
- ClassWithOptionalArgsCtorWithStructs.StructWithPublicDefaultConstructor
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.