共用方式為


編譯器警告 (層級 1) C4817

'member' :非法使用 '.' 來存取此成員;編譯程式取代為 '->'

使用的成員存取運算子錯誤。

範例

下列範例會產生 C4817。

// C4817.cpp
// compile with: /clr /W1
using namespace System;
int main() {
   array<Int32> ^ a = gcnew array<Int32>(100);
   Console::WriteLine( a.Length );   // C4817
   Console::WriteLine( a->Length );   // OK
}