Void Struct-datatyp

Definition

Anger en returvärdetyp för en metod som inte returnerar ett värde.

public value class void
public struct Void
[System.Serializable]
public struct Void
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Void
type unit = struct
[<System.Serializable>]
type unit = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type unit = struct
Public Structure Void
Arv
Attribut

Kommentarer

Strukturen Void används i System.Reflection namnområdet, men är sällan användbar i ett typiskt program. Strukturen Void har inga andra medlemmar än de som alla typer ärver från Object klassen.

Gäller för